### Question:
JdbcSpittleRepository implements SpittleRepository { public Spittle findOne(long id) { try { return jdbcTemplate.queryForObject(SELECT_SPITTLE_BY_ID, new SpittleRowMapper(), id); } catch (EmptyResultDataAccessException e) { return null; } } @Autowired  JdbcSpittleRepository(JdbcTemplate jdbcTemplate); long count(); List<Spittle> findRecent(); List<Spittle> findRecent(int count); Spittle findOne(long id); List<Spittle> findBySpitterId(long spitterId); Spittle save(Spittle spittle); void delete(long id);  }### Answer:
@Test public void findOne() { Spittle thirteen = spittleRepository.findOne(13); assertEquals(13, thirteen.getId().longValue()); assertEquals("Bonjour from Art!", thirteen.getMessage()); assertEquals(1332682500000L, thirteen.getPostedTime().getTime()); assertEquals(4, thirteen.getSpitter().getId().longValue()); assertEquals("artnames", thirteen.getSpitter().getUsername()); assertEquals("password", thirteen.getSpitter().getPassword()); assertEquals("Art Names", thirteen.getSpitter().getFullName()); assertEquals("art@habuma.com", thirteen.getSpitter().getEmail()); assertTrue(thirteen.getSpitter().isUpdateByEmail()); }