if (principal.getName().equals("TEST_PRINCIPAL"))
if (principal.getName().equals("TEST_PRINCIPAL")) {
    public String grant(Principal principal) {        String role = null;        if (principal.getName().equals("TEST_PRINCIPAL"))            role = "ROLE_TEST";        return role;    }