### Question:
SubjectSecurityContext extends SecurityContext { @Override public ConcurrentMap<ActiveMQDestination, ActiveMQDestination> getAuthorizedWriteDests() { throw notAllowed("getAuthorizedWriteDests"); } SubjectSecurityContext(SubjectConnectionReference conn); Subject getSubject(); @Override String getUserName(); @Override boolean isInOneOf(Set<?> allowedPrincipals); @Override ConcurrentMap<ActiveMQDestination, ActiveMQDestination> getAuthorizedWriteDests(); @Override Set<Principal> getPrincipals();  }### Answer:
@Test(expected=UnsupportedOperationException.class) public void testGetAuthorizedWriteDests() { ctx.getAuthorizedWriteDests(); }