### Question:
SessionCache { public void remove(String token) { this.sessions.remove(token); try { ObjectMessage msg = createMessage(token, null, REMOVE); tp.send(msg); } catch (JMSException e) { LOG.error("Failed to replicate session cache entry", e); } }  void put(String token, OAuth2Authentication auth); OAuth2Authentication get(String token); void remove(String token); void clear();  }### Answer:
@Test @Ignore public void testRemove() { Authentication userAuthentication = new PreAuthenticatedAuthenticationToken(new SLIPrincipal("1234"), "auth", Arrays.asList(Right.FULL_ACCESS)); sessions.put(TOKEN2, new OAuth2Authentication(new ClientToken("the", "ordinary", Collections.singleton("man")), userAuthentication)); Assert.assertNotNull(sessions.get(TOKEN2)); sessions.remove(TOKEN2); Assert.assertNull(sessions.get(TOKEN2)); }