@Test
public void testGetAccountWhenSubjectHasNullPrincipal() {

    createSubjectWithNullPrincipalAndBindItToThread();
    // Create the object to be tested
    AccountResource resource = new AccountResource();
    // Create mock OSGi services to inject and inject it
    MockLogService logservice = new MockLogService();
    resource.logservice = logservice;
    // Inject fake OSGi service UkelonnService
    UkelonnService ukelonn = mock(UkelonnService.class);
    resource.ukelonn = ukelonn;
    // Run the method under test
    assertThrows(InternalServerErrorException.class, () -> {
            resource.getAccount("on");
        });
}