@Test
public void saveNewMiddlewareHugeRollbackTest() {

	
	middlewareProperty.setAllowInactive(99999999);
	
	Middleware saved = service.save(api.getId(), middlewareDTO, multipartFile);
	Map<Status, List<Middleware>> middlewareMap = middlewareList.stream()
			.collect(Collectors.groupingBy(m -> m.getStatus()));
	
	assertTrue(saved.equals(middleware));
	assertEquals(Status.ACTIVE, saved.getStatus());
	assertEquals(3, middlewareMap.get(Status.INACTIVE).size());
	assertEquals(2, middlewareMap.get(Status.DEPRECATED).size());
}