@Test
public void testGetString() {

    final String valueStr = "value";
    TypedArray typedArray = mock(TypedArray.class);
    TypedValue typedValue = spy(new TypedValue());
    when(typedArray.peekValue(anyInt())).thenReturn(typedValue);
    when(typedArray.getString(anyInt())).thenReturn(valueStr);
    String ret = ThemeUtil.getString(typedArray, anyInt());
    assertThat(ret, is(valueStr));
}