@Test
 public void isIdSetReturnsTrue() {
   SavedSearch model = new SavedSearch();
   model.setId(ValueGenerator.getUniqueInteger());
   assertThat(model.getId()).isNotNull();
   assertThat(model.isIdSet()).isTrue();
 }
  @Test
  public void manyToOne_setAccount() {
    SavedSearch many = new SavedSearch();

    // init
    Account one = new Account();
    one.setId(ValueGenerator.getUniqueString(36));
    many.setAccount(one);

    // make sure it is propagated properly
    assertThat(many.getAccount()).isEqualTo(one);

    // now set it to back to null
    many.setAccount(null);

    // make sure null is propagated properly
    assertThat(many.getAccount()).isNull();
  }