@Test
public void testAddArrayToArray() {

    String[] array1 = new String[] {"a1", "a2"};
    String[] array2 = new String[] {"b1", "b2", "b3"};
    String[] combinedArray = ThemeBuilderUtils.addToArray(array1, array2);
    Assert.assertEquals("Combined array length is not correct", 5, combinedArray.length);
    Assert.assertEquals("a1", combinedArray[0]);
    Assert.assertEquals("a2", combinedArray[1]);
    Assert.assertEquals("b1", combinedArray[2]);
    Assert.assertEquals("b2", combinedArray[3]);
    Assert.assertEquals("b3", combinedArray[4]);
    array2 = null;
    combinedArray = ThemeBuilderUtils.addToArray(array1, array2);
    Assert.assertEquals("Combined array length is not correct", 2, combinedArray.length);
    Assert.assertEquals("a1", combinedArray[0]);
    Assert.assertEquals("a2", combinedArray[1]);
    array1 = null;
    array2 = new String[] {"b1", "b2", "b3"};
    combinedArray = ThemeBuilderUtils.addToArray(array1, array2);
    Assert.assertEquals("Combined array length is not correct", 3, combinedArray.length);
    Assert.assertEquals("b1", combinedArray[0]);
    Assert.assertEquals("b2", combinedArray[1]);
    Assert.assertEquals("b3", combinedArray[2]);
}