@Test
public void findNotFoundTest() {

	thrown.expect(NotFoundException.class);
	thrown.expectMessage("Resource not found");
	Mockito.when(middlewareRepository.findByApiIdAndId(Mockito.anyLong(), Mockito.anyLong())).thenReturn(null);
	Middleware middleware = service.find(1L, 1L);
	assertEquals(m1, middleware);
}