### Question:
AdminControllerUtil { public static void checkTokens(String sessionToken, String token, SessionStatus status) { if (StringUtils.length(sessionToken) != TOKEN_LENGTH || !(sessionToken.equals(token))) { status.setComplete(); throw new SecurityException("Token does not match"); } } private  AdminControllerUtil(); static void checkTokens(String sessionToken, String token, SessionStatus status); static final int DEFAULT_PAGE_SIZE; }### Answer:
@Test(expected = SecurityException.class) public void checkTokens_invalidLength() throws Exception { String token = "token"; SessionStatus status = createMock(SessionStatus.class); AdminControllerUtil.checkTokens(token, token, status); assertTrue("Exception occurred", false); }