public TenantResourceTest() {
super();
}
public void testGetTenant() throws Exception {
Tenant tenant = this.tenantAggregate();
String url = "http://localhost:" + PORT + "/tenants/{tenantId}";
System.out.println(">>> GET: " + url);
ClientRequest request = new ClientRequest(url);
request.pathParameter("tenantId", tenant.tenantId().id());
String output = request.getTarget(String.class);
System.out.println(output);
RepresentationReader reader = new RepresentationReader(output);
assertEquals(tenant.name(), reader.stringValue("name"));
assertTrue(reader.booleanValue("active"));
}