PreAuthenticatedLogin { public String getUserId() { return userId; } PreAuthenticatedLogin(String userId); String getUserId(); static final Credentials PRE_AUTHENTICATED; }
@Test public void testGetUserId() { assertEquals("id", new PreAuthenticatedLogin("id").getUserId()); }
@Test public void testGetUserIdFromNullValue() { assertNull(new PreAuthenticatedLogin(null).getUserId()); }