@Test public void verifyIgnore() { Ignore ignore = new Ignore(); for (Status eachStatus : Status.values()) { Assert.assertFalse(ignore.map(eachStatus).isPresent()); } }
@Test public void verifyIdentity() { Identity ignore = new Identity(); for (Status eachStatus : Status.values()) { Assert.assertEquals(eachStatus, ignore.map(eachStatus).get()); } }
@Test public void verifySetTo() { SetTo setTo = new SetTo(); setTo.setStatus(Status.WARNING); for (Status eachStatus : Status.values()) { Assert.assertEquals(Status.WARNING, setTo.map(eachStatus).get()); } }