SpaceNewGoal extends AbstractSpaceGoal { protected Object getResultObject() { return this.createdSpace; } SpaceNewGoal();   }
@Test public void testNewSpace() throws GoalConfigurationException, GoalExecutionException { this.configureBackendServiceUrl(server); this.setupMockSpaceServices(testSpace); this.vulasConfiguration.setProperty( CoreConfiguration.TENANT_TOKEN, testTenant.getTenantToken()); this.vulasConfiguration.setProperty(CoreConfiguration.SPACE_NAME, testSpace.getSpaceName()); this.vulasConfiguration.setProperty( CoreConfiguration.SPACE_DESCR, testSpace.getSpaceDescription()); final AbstractGoal goal = GoalFactory.create(GoalType.SPACENEW, GoalClient.CLI); goal.setConfiguration(this.vulasConfiguration).executeSync(); final Space new_space = (Space) goal.getResultObject(); assertEquals(testSpace, new_space); verifyHttp(server).times(1, method(Method.POST), uri("/backend" + PathBuilder.spaces())); verifyHttp(server) .times( 0, method(Method.POST), uri("/backend" + PathBuilder.goalExcecutions(null, testSpace, null))); }