@Test
public void testGetLabel() {

    List<Abbreviation> abbreviations = Lists.newArrayList(new Abbreviation("com.my", "C"), new Abbreviation("org.apache", "A"));
    assertThat(GraphExportStyles.getLabel(abbreviations, "com.my.any.Clazz"), is("C.any.Clazz"));
    assertThat(GraphExportStyles.getLabel(abbreviations, "org.apache.Helper"), is("A.Helper"));
    assertThat(GraphExportStyles.getLabel(abbreviations, "org.apache"), is("A"));
    assertThat(GraphExportStyles.getLabel(abbreviations, "org"), is("org"));
}