@Test
public void testGetMachine() throws Exception {

    when(serviceMock.getMachine(ArgumentMatchers.any())).thenReturn(Mono.just(MACHINE_1));
    Machine entity = SpringMockMvcUtil.doGet(mockMvc, "/api/v4/machines/" + MACHINE_1.getId(), Machine.class);
    assertThat(entity).isEqualTo(MACHINE_1);
}