### Question:
JdbcSpitterRepository implements SpitterRepository { public Spitter findByUsername(String username) { return jdbcTemplate.queryForObject("select id, username, password, fullname, email, updateByEmail from Spitter where username=?", new SpitterRowMapper(), username); } @Autowired  JdbcSpitterRepository(JdbcTemplate jdbcTemplate); @CacheEvict(key="123", value = { "spittleCache" }) long count(); @CacheEvict(key="123", value = { "spittleCache" }) Spitter save(Spitter spitter); Spitter findOne(long id); Spitter findByUsername(String username); @Cacheable(key="123", value = { "spittleCache" }) List<Spitter> findAll();  }### Answer:
@Test @Transactional public void findByUsername() { assertSpitter(0, spitterRepository.findByUsername("habuma")); assertSpitter(1, spitterRepository.findByUsername("mwalls")); assertSpitter(2, spitterRepository.findByUsername("chuck")); assertSpitter(3, spitterRepository.findByUsername("artnames")); }