### Question:
OutputStageService extends AbstractService { public OutputStage updateOutputStage(final OutputStage outputStage) { notNull(outputStage, "outputStage"); notNull(outputStage.getUri(), "outputStage.uri"); try { HttpEntity<OutputStage> outputStageHttpEntity = new HttpEntity<>(outputStage); ResponseEntity<OutputStage> response = restTemplate.exchange(outputStage.getUri(), HttpMethod.PUT, outputStageHttpEntity, OutputStage.class); if (response.getBody() == null) { throw new RestClientException("unexpected response body"); } return response.getBody(); } catch (GoodDataRestException | RestClientException e) { throw new GoodDataException("Unable to update output stage, uri: " + outputStage.getUri()); } } OutputStageService(final RestTemplate restTemplate, final GoodDataSettings settings); OutputStage getOutputStageByUri(final String uri); OutputStage getOutputStage(final Project project); OutputStage updateOutputStage(final OutputStage outputStage); static final UriTemplate OUTPUT_STAGE_TEMPLATE; }### Answer:
@Test(expectedExceptions = IllegalArgumentException.class) public void testUpdateOutputStageNullOutputStage() { outputStageService.updateOutputStage(null); }