### Question:
TrimDao { public TrimEntry get() { try (Connection con = databaseManager.getDataSource().getConnection(); PreparedStatement pstmt = con.prepareStatement("SELECT * FROM trim"); ResultSet rs = pstmt.executeQuery()) { if (rs.next()) { return new TrimEntry(rs.getLong("db_id"), rs.getInt("height"), rs.getBoolean("done")); } else { return null; } } catch (SQLException e) { throw new RuntimeException(e.toString(), e); } } @Inject  TrimDao(DatabaseManager databaseManager); TrimEntry save(TrimEntry trimEntry); TrimEntry get(); void clear(); int count();  }### Answer:
@Test void testGet() { TrimEntry entry = dao.get(); assertEquals(new TrimEntry(1L, 1000, true), entry); }