### Question:
DecisionComponentFilter { Optional<String> getTerm() { return getOptionalString(term); }    }### Answer:
@Test public void testGetTermWhenTermIsNotPresent() { assertFalse(filter.getTerm().isPresent()); }
@Test public void testGetTerm() { final String term = "term"; filter.setTerm(term); assertTrue(filter.getTerm().isPresent()); assertEquals(term, filter.getTerm().get()); }