@Test
public void testGetById() {

    Mockito.when(mockUserRepository.findOne(RANDOM_UUID)).thenReturn(TEST_USER_ENTITY);
    final UserEntity userEntity = userService.getById(RANDOM_UUID);
    assertEquals(TEST_USER_ENTITY, userEntity);
    Mockito.verify(mockUserRepository).findOne(RANDOM_UUID);
}