verifyExceptionThrown(" ");
verifyExceptionThrown("HEAD");
}
private void verifyExceptionThrown(String methodName) throws Exception {
RestfulRequestItem request = new RestfulRequestItem(null, methodName, null, null);
Future<?> err = drh.handleItem(request);
try {
err.get();
} catch (ExecutionException ee) {
assertTrue(ee.getCause() instanceof SocialSpiException);