### Question:
MrrtReportTemplateResource extends DataDelegatingCrudResource<MrrtReportTemplate> { @Override public void purge(MrrtReportTemplate mrrtReportTemplate, RequestContext requestContext) throws ResourceDoesNotSupportOperationException { throw new ResourceDoesNotSupportOperationException(); }  @Override DelegatingResourceDescription getRepresentationDescription(Representation rep); @Override List<String> getPropertiesToExposeAsSubResources(); @Override MrrtReportTemplate getByUniqueId(String uuid); @PropertyGetter("display") String getDisplayString(MrrtReportTemplate mrrtReportTemplate); @Override void purge(MrrtReportTemplate mrrtReportTemplate, RequestContext requestContext); @Override MrrtReportTemplate newDelegate(); @Override MrrtReportTemplate save(MrrtReportTemplate mrrtReportTemplate); @Override String getResourceVersion();  }### Answer:
@Test(expected = ResourceDoesNotSupportOperationException.class) public void shouldFailToPurgeTemplate() throws Exception { RequestContext requestContext = new RequestContext(); mrrtReportTemplateResource.purge(mrrtReportTemplate, requestContext); }