+ requestFactory.setStatus(HttpStatus.BAD_REQUEST);
+ try
+ {
+ clientTemplate.getForObject("ANY", SOME.class);
+ fail("The parent handler should have raised an exception!");
+ }
+ catch(HttpClientErrorException e)
+ {
+ LOG.debug("Expexted error: {}", e.toString());
+ }
+ catch(Exception e)
+ {
+ LOG.debug("{}", e.toString());
+ fail("Unexpected error: " + e);
+ }
+