### Question:
NotificationController { @PostMapping("${vnfm.notification}") public ResponseEntity receiveNotification(@RequestBody final VnfLcmOperationOccurrenceNotification notification) { logger.info("Notification received {}", notification); try { dmaapConditionalSender.send(notification); } catch (NullPointerException e) { logger.warn("NullPointerException caught while sending to DMaaP", e); } return ResponseEntity.ok().build(); } NotificationController(final DmaapConditionalSender dmaapConditionalSender); @PostMapping("${vnfm.notification}") ResponseEntity receiveNotification(@RequestBody final VnfLcmOperationOccurrenceNotification notification);  }### Answer:
@Test public void testReceiveNotification() throws Exception { final MockHttpServletRequestBuilder request = MockMvcRequestBuilders.post(notification).contentType(MediaType.APPLICATION_JSON).content(JSON); final MvcResult mvcResult = mvc.perform(request).andReturn(); final MockHttpServletResponse response = mvcResult.getResponse(); assertEquals(HttpStatus.OK.value(), response.getStatus()); assertEquals(ZERO, response.getContentLength()); }