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());
    }
}

package com.saucelabs.common;

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



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

Remove test duplication