@Test
public void findTest() {

	Mockito.when(middlewareRepository.findByApiIdAndId(Mockito.anyLong(), Mockito.anyLong())).thenReturn(m1);
	Middleware middleware = service.find(1L, 1L);
	assertEquals(m1, middleware);
}