### Question:
ApplicationQueryFilterVisitor extends ServiceConfigQueryFilterVisitor { @Override protected Map<String, Set<String>> getConfigData(ServiceConfig serviceConfig) { @SuppressWarnings("unchecked") Map<String, Set<String>> appData = serviceConfig.getAttributes(); appData.put("name", singleton(applicationName)); Set<String> metaData = appData.get("meta"); for (String entry : metaData) { Set<String> attributeValue = emptySet(); if (isNotEmpty(entry)) { String[] tokens = entry.split("="); if (tokens.length == 2) { attributeValue = singleton(tokens[1]); } } if (entry.startsWith(CREATED_BY_ATTRIBUTE)) { appData.put("createdBy", attributeValue); } else if (entry.startsWith(CREATION_DATE_ATTRIBUTE)) { appData.put("creationDate", attributeValue); } else if (entry.startsWith(LAST_MODIFIED_BY_ATTRIBUTE)) { appData.put("lastModifiedBy", attributeValue); } else if (entry.startsWith(LAST_MODIFIED_DATE_ATTRIBUTE)) { appData.put("lastModifiedDate", attributeValue); } } return appData; } ApplicationQueryFilterVisitor(String applicationName);   }### Answer:
@Test public void shouldModifyConfigData() { Map<String, Set<String>> configData = applicationQueryFilterVisitor.getConfigData(serviceConfig); assertThat(configData.get("name")).contains(APPLICATION_NAME); assertThat(configData.get("createdBy")).contains(CREATED_BY); assertThat(configData.get("creationDate")).contains(CREATION_DATE); assertThat(configData.get("lastModifiedBy")).contains(LAST_MODIFIED_BY); assertThat(configData.get("lastModifiedDate")).contains(LAST_MODIFIED_DATE); }