public void testIsNullIsNotNull() {
    ArrayList<TestEntity> inserted = insert(2);
    TestEntity testEntityNull = inserted.get(0);
    TestEntity testEntityNotNull = inserted.get(1);

    testEntityNull.setSimpleInteger(null);
    testEntityNotNull.setSimpleInteger(42);
    dao.update(testEntityNull);
    dao.update(testEntityNotNull);

    TestEntity testEntityNull2 =
        dao.queryBuilder().where(Properties.SimpleInteger.isNull()).uniqueOrThrow();
    assertEquals(testEntityNull.getId(), testEntityNull2.getId());

    TestEntity testEntityNotNull2 =
        dao.queryBuilder().where(Properties.SimpleInteger.isNotNull()).uniqueOrThrow();
    assertEquals(testEntityNotNull.getId(), testEntityNotNull2.getId());
  }
  public void testEqInteger() {
    ArrayList<TestEntity> inserted = insert(3);
    int value = getSimpleInteger(1);

    List<TestEntity> result = dao.queryBuilder().where(Properties.SimpleInteger.eq(value)).list();
    assertEquals(1, result.size());

    TestEntity resultEntity = result.get(0);
    assertEquals(value, (int) resultEntity.getSimpleInteger());
    assertEquals(inserted.get(1).getId(), resultEntity.getId());
  }