@Test
public void testGetPrincipal_TargetHasNoPrincipal() {

    when(authenticationSourceMock.getPrincipal()).thenReturn("");
    String principal = tested.getPrincipal();
    assertThat(principal).isEqualTo(DEFAULT_USER);
}