### Question:
QuestionsAndAnswersPlugin extends WebControllerPlugin implements TopicPlugin { @Override public List<PluginProperty> getConfiguration() { PluginProperty orderProperty = new PluginProperty(ORDER_PROPERTY, PluginProperty.Type.INT, String.valueOf(order)); orderProperty.setHint(ORDER_HINT); return Arrays.asList(orderProperty); }  @Override String getName(); @Override List<PluginProperty> getConfiguration(); @Override boolean supportsJCommuneVersion(String version); @Override List<PluginProperty> getDefaultConfiguration(); @Override String translateLabel(String code, Locale locale); @SuppressWarnings("unchecked") @Override List<T> getBranchPermissions(); @Override CreateTopicBtnDto getCreateTopicBtnDto(long branchId); @Override JtalksPermission getCreateTopicPermission(); @Override JtalksPermission getBranchPermissionByMask(int mask); @Override JtalksPermission getBranchPermissionByName(String name); @Override PluginController getController(); @Override String getTopicType(); @Override JtalksPermission getCommentPermission(); @Override SubscribersFilter getSubscribersFilter(); static final String TOPIC_TYPE; static final String CONTEXT; static final String MESSAGE_PATH; }### Answer:
@Test public void defaultConfigurationShouldBeAppliedIfConfigureWithNullOrderValue() throws Exception { PluginProperty property = new PluginProperty(ORDER_PROPERTY, PluginProperty.Type.INT, null); PluginConfiguration config = new PluginConfiguration("Questions and Answers plugin", true, Arrays.asList(property)); QuestionsAndAnswersPlugin plugin = new QuestionsAndAnswersPlugin(); plugin.configure(config); List<PluginProperty> actualConfiguration = plugin.getConfiguration(); assertEquals(actualConfiguration.size(), 1); assertEquals(actualConfiguration.get(0).getValue(), "102"); }