}
@Test
public void testAuthenticate() {
AuthenticatorImpl.AUTHENTICATE_URL = "https://testnetbeans.org/api/login/authenticate.json";
AuthenticatorImpl impl = new AuthenticatorImpl();
Authenticator.AuthToken token = impl.authenticate("jindrich.sedek@sun.com", "vsdsvsds");
assertNotNull(token);
assertEquals("exceptions_reporter", token.getUserName());
token = impl.authenticate("petr.blaha@sun.com", "vsdsvsds");
assertNotNull(token);
assertEquals("qarobot", token.getUserName());
token = impl.authenticate("kenaiadmin", "kenaiadmin");
assertNotNull(token);
assertEquals("kenaiadmin", token.getUserName());
token = impl.authenticate("jaromir.uhrik@sun.com", "vsdsvsds");
assertNotNull(token);
assertEquals("juhrik", token.getUserName());
}