AllowAllAuthentication extends Authentication { public String connect(String username, String password) throws LoginException { return generateToken(username); }  String connect(String username, String password); boolean canSend(String token, String topic); boolean canSubscribe(String token, String topic);  }
@Test public void testConnect() throws Exception { assertNotNull(authentication.connect("username", "password")); }
@Test public void testConnect_null() throws Exception { assertNotNull(authentication.connect(null, null)); }