public class SpacesTest extends AbstractXmlRpcTestCase
{
public void testAddRemoveSpace() throws Exception
{
String spaceKey = "TestSpace" + (new Random()).nextInt(10000);
Space space = new Space();
space.setKey(spaceKey);
space.setName("Some Name");
rpc.addSpace(space);
Space spaceSummary = rpc.getSpace(spaceKey);
assertEquals(spaceKey, spaceSummary.getKey());
rpc.removeSpace(spaceKey);
List spaces = rpc.getSpaces();
boolean found = false;