@Test public void isIdSetReturnsTrue() { SavedSearch model = new SavedSearch(); model.setId(ValueGenerator.getUniqueInteger()); assertThat(model.getId()).isNotNull(); assertThat(model.isIdSet()).isTrue(); }
// test unique primary key @Test public void newInstanceHasNoPrimaryKey() { SavedSearch model = new SavedSearch(); assertThat(model.isIdSet()).isFalse(); }