package org.fusesource.fabric.itests;

import org.fusesource.fabric.api.FabricService;
import org.fusesource.fabric.api.Profile;
import org.junit.Test;

import java.util.Arrays;

import static org.junit.Assert.assertTrue;

/**
 *
 */
public class FabricServiceTest extends BaseFabricIntegrationTestSupport {

    @Test
    public void testCreateProfile() throws Exception {
        FabricService service = getServer().getFabricService();

        Profile[] profiles = service.getDefaultVersion().getProfiles();

        Profile test = service.getDefaultVersion().createProfile("testCreateProfile");

        profiles = service.getDefaultVersion().getProfiles();

        assertTrue(Arrays.asList(profiles).contains(test));
    }

}

@@ -122,16 +122,41 @@
 rofile;%0A
+import org.junit.Before;%0A
 import o
@@ -335,13 +335,53 @@
     
-@Test
+protected FabricService service;%0A%0A    @Before
 %0A   
@@ -393,32 +393,31 @@
 ic void 
-testCreateProfil
+setFabricServic
 e() thro
@@ -439,30 +439,16 @@
         
-FabricService 
 service 
@@ -480,16 +480,88 @@
 rvice();
+%0A    %7D%0A%0A    @Test%0A    public void testCreateProfile() throws Exception %7B
 %0A%0A      

Add accessor