@Test
  public void shouldGetRightsForUserAndWarehouse() {
    Set<Right> expectedRights = new HashSet<>();
    Long userId = 1l;
    Long warehouseId = 2l;
    when(roleRightsRepository.getRightsForUserAndWarehouse(userId, warehouseId))
        .thenReturn(expectedRights);

    Set<Right> rights = roleRightsService.getRightsForUserAndWarehouse(userId, warehouseId);

    assertThat(rights, is(expectedRights));
    verify(roleRightsRepository).getRightsForUserAndWarehouse(userId, warehouseId);
  }