	@Test
	public void testHierarchyPackages4() {

		List<JavaPackage> packages = Arrays.asList(
				newPkg("a.p1"),
				newPkg("a.b.c.p2"),
				newPkg("a.b.c.p3"),
				newPkg("d.e"),
				newPkg("d.f.a")
		);
		List<JPackage> out = sources.getHierarchyPackages(packages);

		assertEquals(out.size(), 2);
		assertEquals(out.get(0).getName(), "a");
		assertEquals(out.get(0).getInnerPackages().size(), 2);
		assertEquals(out.get(1).getName(), "d");
		assertEquals(out.get(1).getInnerPackages().size(), 2);
	}