public void testLogin() throws Exception {
String password = "111";
char[] charPassword = new char[password.length()];
password.getChars(0, password.length(), charPassword, 0);
UserContext uc = LoginServices.login("1", charPassword);
assertEquals(uc.getUsuario().getRg(), "1");
password = "invalidPassword";
charPassword = new char[password.length()];
password.getChars(0, password.length(), charPassword, 0);
UserContext ucFalha = LoginServices.login("1", charPassword);
assertNull(ucFalha);
}