### Question:
HopServerStatusCache implements Cache { public void remove( String id ) { CachedItem item = cachedMap.remove( id ); if ( item != null ) { removeTask( item.getFile() ); } } private  HopServerStatusCache(); static synchronized HopServerStatusCache getInstance(); void put( String logId, String cacheString, int from ); byte[] get( String logId, int from ); void remove( String id ); @Override Object read( Object key ); @Override Object get( Object key ); @Override void put( Object key, Object value ); @Override void update( Object key, Object value ); @Override void remove( Object key ); @Override void clear(); @Override void destroy(); @Override Map toMap(); @Override void lock( Object key ); @Override void unlock( Object key ); @Override long nextTimestamp(); @Override int getTimeout(); @Override String getRegionName(); @Override long getSizeInMemory(); @Override long getElementCountInMemory(); @Override long getElementCountOnDisk(); static final String HOP_SERVER_STATUS_CACHE; }### Answer:
@Test public void testRemove() throws Exception { initializeTestData( cache.getMap() ); Assert.assertEquals( 40, cache.getMap().size() ); cacheSpy.remove( "logId1" ); Assert.assertEquals( 39, cache.getMap().size() ); Assert.assertNull( cache.getMap().get( "logId1" ) ); }