public void testSecureComponentHelper()
{
TextField<String> field = new TextField<String>("id");
assertNull(SecureComponentHelper.getSecurityCheck(field));
assertTrue(SecureComponentHelper.isActionAuthorized(field, "whatever"));
ComponentSecurityCheck check = new ComponentSecurityCheck(field);
// this did not register the check with the component
assertNull(SecureComponentHelper.getSecurityCheck(field));
SecureComponentHelper.setSecurityCheck(field, check);
assertEquals(check, SecureComponentHelper.getSecurityCheck(field));
try