private static final DoapResourceByNameComparator comp = new DoapResourceByNameComparator();
@Test
public void testIDoapResourcesByName() {
MockDoapResource emptyName = new MockDoapResource();
MockDoapResource t1 = new MockDoapResource();
MockDoapResource t2 = new MockDoapResource();
t1.setName("aaa");
t2.setName("zzz");
assertEquals(0, comp.compare(null, null));
assertEquals(0, comp.compare(t1, t1));
assertEquals(0, comp.compare(t2, t2));
assertEquals(0, comp.compare(emptyName, emptyName));