@Test
public void testSelfCycles1() {

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