XkcdDatabaseHandler { @Nullable @Contract(pure = true) public DatabaseStripe queryForStripeWithNum(final long stripeNum) { return SQLite.select() .from(DatabaseStripe.class) .where(DatabaseStripe_Table.NUM.is(stripeNum)) .querySingle(); } @Inject  XkcdDatabaseHandler(); void insertStripe(final @NonNull DatabaseStripe databaseStripe); @Nullable @Contract(pure = true) DatabaseStripe queryForStripeWithNum(final long stripeNum);  }
@Test public void testSelectFromEmpty() { assertThat(mSut.queryForStripeWithNum(generateLong(Value.REGULAR))).isNull(); }