@Override
	protected void obtainResource() throws Exception {
		resource = new RestTemplate();
		try {
			resource.getForObject("http://localhost:15672/api/overview", Map.class);
		}
		catch (HttpClientErrorException e) {
			if (e.getStatusCode() != HttpStatus.UNAUTHORIZED) {
				throw e;
			}
		}
	}
JUnit {@link Rule} that detects the fact that RabbitMQ is available on localhost with
the management plugin enabled.

@author Gary Russell
@since 1.2
spring-xd-test/src/main/java/org/springframework/xd/test/rabbit/RabbitAdminTestSupport.java