@Test
public void testInitializeDimensionNames() {

    final ColumnRegistry columnRegistry = new ColumnRegistry();
    columnRegistry.register(new ColumnBuilder().name("Heike").dimensions("a b c").rank(3).build());
    columnRegistry.register(new ColumnBuilder().name("Klaus").dimensions("left right").rank(2).build());
    final List<String> nameList = new ArrayList<>();
    nameList.add("Klaus");
    nameList.add("Heike");
    final TreeSet<String> dimensionNames = MmdTool.getDimensionNames(nameList, columnRegistry);
    assertNotNull(dimensionNames);
    assertEquals(5, dimensionNames.size());
    assertThat(dimensionNames, hasItem("left"));
    assertThat(dimensionNames, hasItem("b"));
}