### Question:
ReindexingTaskFactory implements TaskFactory { @Override public List<String> listSupportedTaskTypes() { List<String> ret = new ArrayList<String>(); for (ReindexingTaskTypes t : ReindexingTaskTypes.values()) { ret.add(t.getTaskType()); } return ret; }  @Override List<String> listSupportedTaskTypes(); @Override Task createTask(String taskType, Map<String, Object> taskConfig); static String getMandatoryConfigString(Map<String, Object> taskConfig, String propertyName); static String[] getMandatoryConfigStringArray(Map<String, Object> taskConfig, String propertyName); static String[] getConfigStringArray(Map<String, Object> taskConfig, String propertyName); static Integer getConfigInteger(Map<String, Object> taskConfig, String propertyName, boolean isMandatory); static final String CFG_PROJECT_ID_VALUE; static final String CFG_PROJECT_ID_TYPE; static final String CFG_CONTRIBUTOR_ID_VALUE; static final String CFG_CONTRIBUTOR_ID_TYPE; static final String CFG_SYS_CONTENT_TYPE; static final String CFG_PROJECT_CODE; static final String CFG_CONTRIBUTOR_CODE; }### Answer:
@Test public void listSupportedTaskTypes() { ReindexingTaskFactory tested = new ReindexingTaskFactory(); List<String> t = tested.listSupportedTaskTypes(); Assert.assertEquals(ReindexingTaskTypes.values().length, t.size()); Assert.assertTrue(t.contains(ReindexingTaskTypes.REINDEX_FROM_PERSISTENCE.getTaskType())); }