### Question:
FunctionalDependencyVisualization { protected Map<ColumnIdentifier, Set<ColumnCombination>> createDependantMap() { Map<ColumnIdentifier, Set<ColumnCombination>> dependantMap = new HashMap<>(); for (FunctionalDependencyResult result : this.results) { ColumnIdentifier dependantColumn = result.getDependant(); if (!dependantMap.containsKey(dependantColumn)) { dependantMap.put(dependantColumn, new TreeSet<ColumnCombination>()); } ; dependantMap.get(dependantColumn).add(result.getDeterminant()); } return dependantMap; } FunctionalDependencyVisualization(List<FunctionalDependencyResult> results,
                                           TableInformation tableInformation); void createVisualizationData(); @SuppressWarnings(Constants.SUPPRESS_WARNINGS_UNCHECKED) void printFunctionalDependencyVisualizationData(
    Map<ColumnIdentifier, Set<ColumnCombination>> dependantMap); String unifyPath(String path); String combinePaths(String dirPath, String filePath);  }### Answer:
@Test public void testCreateDependantMap() { TableInformation tableInformation = tableInformationMap.values().iterator().next(); FunctionalDependencyVisualization visualization = new FunctionalDependencyVisualization( functionalDependencyResults, tableInformation); ColumnIdentifier expectedDependant = new ColumnIdentifier(tableName, "C"); Set<ColumnCombination> expectedDeterminant = new TreeSet<>(); expectedDeterminant.add(new ColumnCombination( new ColumnIdentifier(tableName, "A"), new ColumnIdentifier(tableName, "B"))); Map<ColumnIdentifier, Set<ColumnCombination>> actualDependantMap = visualization.createDependantMap(); assertEquals(3, actualDependantMap.keySet().size()); assertEquals(1, actualDependantMap.get(expectedDependant).size()); assertEquals(expectedDeterminant, actualDependantMap.get(expectedDependant)); }