@Test
public void testGetCredentials() throws Exception {

    User delegate = mock(User.class);
    UserFacade facade = getFacade(delegate);
    final Credentials value = mock(Credentials.class);
    when(delegate.getCredentials()).thenReturn(value);
    assertSame("same value", value, facade.getCredentials());
}