public Long getId() {
        return id;
    }
@Test
    public void getServiceById() {
        Optional<Service> serviceOptional = Optional.of(newService());
        when(serviceRepositoryMock.findById(anyLong())).thenReturn(serviceOptional);

        Service result = serviceServiceMock.getServiceById(1L);

        verify(serviceRepositoryMock, times(1)).findById(anyLong());
        assertEquals(serviceOptional.get().getId(), result.getId());
    }