@Test
public void testGetStringWhenTypeValueIsNull() {

    final String valueStr = "value";
    TypedArray typedArray = mock(TypedArray.class);
    when(typedArray.getString(anyInt())).thenReturn(valueStr);
    String ret = ThemeUtil.getString(typedArray, anyInt());
    assertNull(ret);
}