package com.saucelabs.common;

import org.junit.Assert;
import org.junit.Test;



public class SauceGridTest{
    @Test
    public void shouldReturnObject()
    {
        SauceRemoteGrid sauceGrid = new SauceRemoteGrid();
        Assert.assertNotNull(sauceGrid);
    }
    @Test
    public void shouldReturnTestObject()
    {
        SauceRemoteGrid sauceGrid = new SauceRemoteGrid();
        Assert.assertNotNull(sauceGrid.test);
    }
    @Test
    public void shouldSetDefaultBrowserToChrome()
    {
        SauceRemoteGrid sauceGrid = new SauceRemoteGrid();
        Assert.assertEquals(Browser.Chrome, sauceGrid.test.getBrowser());
    }
}

@@ -49,16 +49,41 @@
 Assert;%0A
+import org.junit.Before;%0A
 import o
@@ -128,29 +128,62 @@
 idTest%7B%0A    
-@Test
+SauceRemoteGrid sauceGrid;%0A    @Before
 %0A    public 
@@ -192,24 +192,21 @@
 id s
-houldReturnObjec
+etupBeforeTes
 t()%0A
@@ -219,32 +219,16 @@
         
-SauceRemoteGrid 
 sauceGri
@@ -246,32 +246,91 @@
 ceRemoteGrid();%0A
+    %7D%0A    @Test%0A    public void shouldReturnObject()%0A    %7B%0A
         Assert.a
@@ -421,67 +421,8 @@
   %7B%0A
-        SauceRemoteGrid sauceGrid = new SauceRemoteGrid();%0A
     
@@ -539,67 +539,8 @@
   %7B%0A
-        SauceRemoteGrid sauceGrid = new SauceRemoteGrid();%0A
     

Remove test duplication