assertTrue(ne.compareTo(ne) == 0);
NamedEntity ne2 = new NamedEntity();
assertTrue(ne.compareTo(ne2) == 0);
ne.setName("test name 1");
assertTrue(ne.compareTo(ne2) != 0);
assertTrue(ne2.compareTo(ne) != 0);
ne2.setName("test name 2");
assertTrue(ne.compareTo(ne2) != 0);
assertTrue(ne2.compareTo(ne) != 0);
ne2.setName("test name 1");
assertTrue(ne.compareTo(ne2) == 0);