### Question:
UserDataCacheService { public void putNewPmCount(String username, int count) { userDataCache.put(new Element(username, count)); } UserDataCacheService(Ehcache userDataCache); Integer getNewPmCountFor(String username); void putNewPmCount(String username, int count); void incrementNewMessageCountFor(String username); void decrementNewMessageCountFor(String username);  }### Answer:
@Test public void testPutNewPmCount() throws Exception { userDataCacheService.putNewPmCount(USERNAME, 2); verify(cache).put(new Element(USERNAME, 2)); }