@Test
public void saveDefaultPlanWithNullAPI() {

     thrown.expect(BadRequestException.class);
     thrown.expectMessage("Api does not exist");
     Mockito.when(apiService.plansByApi(1L))
            .thenThrow(new BadRequestException(ExceptionMessage.API_NOT_EXIST));
     planDTO.setApi(new ReferenceIdDTO(1L));
     Plan saved = planService.save(planDTO);
}