@Test(expected = InvalidLoginException.class)
public void testNullName() {

    final LoginRequest loginRequest = new LoginRequest();
    loginRequest.setName(null);
    userController.login(loginRequest);
}