@Test
public void canBeSorted() {

    SymbolDependency a = SymbolDependency.builder().dependencyType("a").packageName("a").version("1").build();
    SymbolDependency a2 = SymbolDependency.builder().dependencyType("a").packageName("a2").version("1").build();
    SymbolDependency a3 = SymbolDependency.builder().dependencyType("a2").packageName("a").version("1").build();
    SymbolDependency b = SymbolDependency.builder().dependencyType("b").packageName("b").version("1").build();
    SymbolDependency b2 = SymbolDependency.builder().dependencyType("b").packageName("b").version("2").build();
    SymbolDependency c = SymbolDependency.builder().dependencyType("b").packageName("c").version("1").build();
    List<SymbolDependency> dependencies = Arrays.asList(c, b2, b, a3, a2, a);
    Collections.sort(dependencies);
    assertThat(dependencies, contains(a, a2, a3, b, b2, c));
}