@Test
public void test_getValueFromIndex() throws Exception {

    assertThat(TagW.getValueFromIndex(null, -1)).isNull();
    assertThat(TagW.getValueFromIndex(null, 0)).isNull();
    assertThat(TagW.getValueFromIndex(null, 1)).isNull();
    assertThat(TagW.getValueFromIndex(STRING_VALUE_1, -1)).isEqualTo(STRING_VALUE_1);
    assertThat(TagW.getValueFromIndex(STRING_VALUE_1, 0)).isEqualTo(STRING_VALUE_1);
    assertThat(TagW.getValueFromIndex(STRING_VALUE_1, 1)).isEqualTo(STRING_VALUE_1);
    assertThat(TagW.getValueFromIndex(STRING_ARRAY, -1)).isNull();
    assertThat(TagW.getValueFromIndex(STRING_ARRAY, 0)).isEqualTo(STRING_ARRAY[0]);
    assertThat(TagW.getValueFromIndex(STRING_ARRAY, 1)).isEqualTo(STRING_ARRAY[1]);
    assertThat(TagW.getValueFromIndex(STRING_ARRAY, 2)).isNull();
}