plugin.configure(config);
}
@Test(expectedExceptions = UnexpectedErrorException.class)
public void configurationWithIncorrectParametersNumberShouldThrowUnexpectedErrorException() throws Exception {
PluginProperty correctProperty = new PluginProperty(ORDER_PROPERTY, PluginProperty.Type.INT, "102");
PluginProperty incorrectProperty = new PluginProperty("anyProperty", PluginProperty.Type.STRING, "string");
PluginConfiguration config = new PluginConfiguration("Questions and Answers plugin", true,
Arrays.asList(correctProperty, incorrectProperty));
QuestionsAndAnswersPlugin plugin = new QuestionsAndAnswersPlugin();
plugin.configure(config);