@Test
public void equals() {

    SquirrelWebObject o1 = new SquirrelWebObject();
    SquirrelWebObject o2 = new SquirrelWebObject();
    assertTrue("2 new SquirrelWebObjects should be equal...", o1.equals(o2));
    ArrayList<String> pendingURIs = new ArrayList<>();
    pendingURIs.add("https://www.philippheinisch.de");
    pendingURIs.add("https://www.bibleserver.com/");
    try {
        o2.setPendingURIs(pendingURIs);
        o2.setIPMapPendingURis(Collections.singletonMap("1.1.1.1", pendingURIs));
    } catch (IllegalAccessException e) {
        e.printStackTrace();
    }
    assertFalse("One of them got pending URIs --> not equal any more", o1.equals(o2));
    try {
        o1.setPendingURIs((List<String>) pendingURIs.clone());
        o1.setIPMapPendingURis(Collections.singletonMap("1.1.1.1", pendingURIs));
    } catch (IllegalAccessException e) {
        e.printStackTrace();
    }
    assertTrue("Now the other SquirrelWebObjects got the same list --> equal again!", o1.equals(o2));
    o1.setGraph(new VisualisationGraph());
    o2.setGraph(new VisualisationGraph());
    assertTrue("SquirrelWebObjects with a similar graph should be the same", o1.equals(o2));
}