@Test(expected = ServiceUnavailableException.class)
public void schedulingError() throws PinsetterException {
JobDetail detail = newJob().build();
when(response.getEntity()).thenReturn(detail);
when(this.pinsetterKernel.scheduleSingleJob(detail))
.thenThrow(new PinsetterException("Error scheduling job!"));
this.interceptor.postProcess(response);
}