### Question:
SecurityContext implements AutoCloseable { public static SecurityContext get() { if (currentContext.get() == null) throw new IllegalStateException("Security context not set."); return currentContext.get(); } protected  SecurityContext(AccessController accessController, IdentityResolver identityResolver, Credentials credentials); static SecurityContext get(); static SecurityContext set(SecurityContext ctx); static boolean isSet(); static SecurityContext clear(); @Override void close(); Credentials getCredentials(); void checkPermission(NamedFunction function); void checkPermission(NamedFunction function, UUID organizationID); UUID getCurrentUserID(); Set<UUID> getAvailableOrganizationID();  }### Answer:
@Test(expected = IllegalStateException.class) public void testGetContextNotSet() { SecurityContext.get(); }