    @Test
    public void shouldGetByEmail() throws NotFoundException {

        User user = createUser();
        BDDMockito.given(userRepository.findOneByEmail(user.getEmail())).willReturn(user);

        User userFromDB = userDAO.getByEmail(user.getEmail());

        Assert.assertEquals(user, userFromDB);
    }