@Test
void remove_created_location_by_id() {

    LocationEntity locationEntity = locationEntity(testLocation);
    final long id = testLocation.id();
    when(crudRepository.findById(id)).thenReturn(Optional.of(locationEntity));
    Location removed = repository.removeLocation(id);
    assertThat(removed).isEqualTo(testLocation);
    verify(crudRepository).deleteById(id);
}