@Test
  public void addedUserRoleFoundById() {

    UserRole role = new UserRole("");
    role = userRoleService.save(role);

    assertEquals(role, userRoleService.findById(role.getId()));
  }
  @Test
  public void deletedUserNotFoundById() {

    UserRole role = new UserRole("");
    role = userRoleService.save(role);
    userRoleService.delete(role.getId());

    assertNull(userRoleService.findById(role.getId()));
  }
  @Test
  public void deletingUserRoleDecreasesCount() {

    UserRole role = userRoleService.save(new UserRole(""));
    long startCount = userRoleService.count();

    userRoleService.delete(role.getId());
    long endCount = userRoleService.count();

    assertEquals(startCount - 1, endCount);
  }