public void shouldRaiseExceptionWhenErrorOccursDuringGet() throws JsonProcessingException {
prepareEnvForTest();
RestObject<String> sampleRestObj = new RestObject<>();
serverUtil.prepareGetCall("/test", ERROR_RESPONSE, Action.status(HttpStatus.INTERNAL_SERVER_ERROR_500));
public void shouldRaiseExceptionWhenErrorOccursDuringGet() throws JsonProcessingException {
prepareEnvForTest();
RestObject<String> sampleRestObj = new RestObject<>();
serverUtil.prepareGetCall("/test", ERROR_RESPONSE, Action.status(HttpStatus.INTERNAL_SERVER_ERROR_500));