    @Test
    public void shouldFailWhenUserIsNotFound() throws Exception {

        doReturn(null).when(repository).findByUsername(anyString());
        try {
            userDetailsService.loadUserByUsername(anyString());
            fail();
        } catch (Exception e) {

        }
    }