}
}
public void testAddSpace() throws Exception
{
Space space = new Space();
space.setKey(String.format("%s-%d", TestConstants.TEST_PREFIX, Math.abs(random.nextInt())));
space.setName("TEST Space");
space = rpc.addSpace(space);
TestUtils.banner("TEST: addSpace()");
System.out.format("%s\n", space);
List<SpaceSummary> spaces = rpc.getSpaces();
boolean found = false;
for (SpaceSummary spaceSummary : spaces) {
if (spaceSummary.getKey().equals(space.getKey())) {
found = true;
break;
}
}