@Test
public void testSelfCycles2() {

    Requirement self = new Requirement(null);
    thrown.expect(RuntimeException.class);
    thrown.expectMessage("Requirement cycle detected");
    self.setRequiredBy(self);
}