### Question:
RadiologyModalityResource extends MetadataDelegatingCrudResource<RadiologyModality> { @Override public void purge(RadiologyModality delegate, RequestContext context) throws ResponseException { throw new ResourceDoesNotSupportOperationException(); }  @Override String getResourceVersion(); @Override DelegatingResourceDescription getRepresentationDescription(Representation rep); @Override DelegatingResourceDescription getCreatableProperties(); @PropertyGetter("display") String getDisplayString(RadiologyModality delegate); @Override RadiologyModality getByUniqueId(String uniqueId); @Override RadiologyModality newDelegate(); @Override RadiologyModality save(RadiologyModality delegate); @Override void delete(RadiologyModality delegate, String reason, RequestContext context); @Override void purge(RadiologyModality delegate, RequestContext context);  }### Answer:
@Test(expected = ResourceDoesNotSupportOperationException.class) public void shouldThrowResourceDoesNotSupportOperationException() throws Exception { RequestContext requestContext = new RequestContext(); radiologyModalityResource.purge(radiologyModality, requestContext); }