@Test
public void testAuth() throws Exception {

    String subject = "testing-only";
    String credentials = authenticationService.generateCredentials(UUID.randomUUID().toString(), new String[]{"alibaba"}, new String[]{"default"}, new String[]{"internal"}, null, subject, new String[]{"leijuan"});
    System.out.println(credentials);
    Principal principal = authenticationService.auth("JWT", credentials);
    Assertions.assertNotNull(principal);
    Assertions.assertEquals(subject, principal.getName());
}