@Ignore("DEX-1801: Fix Mockito Problem in Release TeamCity Job")
@Test
public void attemptEncodeQueryParam_mapOfStringToListOfString()
        throws IllegalAccessException, NoSuchFieldException {

    String prefix = "defined Tags.";
    String keyName1 = "tag1";
    String option1a = "option1a";
    String option1b = "option1 b";
    String keyName2 = "tag 2";
    String option2a = "option2a";
    String option2b = "option2 b";
    Map<String, List<String>> definedTags =
            ImmutableMap.<String, List<String>>of(
                    keyName1, ImmutableList.of(option1a, option1b),
                    keyName2, ImmutableList.of(option2a, option2b));
    WebTarget target = mock(WebTarget.class);
    when(target.queryParam(anyString(), any())).thenReturn(target);
    WrappedWebTarget wrapped = new WrappedWebTarget(target);
    WrappedWebTarget result = HttpUtils.encodeMapQueryParam(wrapped, prefix, definedTags);
    assertNotNull(result);
    String prefixEncoded = "defined%20Tags.";
    String keyName2Encoded = "tag%202";
    String option1bEncoded = "option1%20b";
    String option2bEncoded = "option2%20b";
    verify(target).queryParam(prefixEncoded + keyName1, option1a);
    verify(target).queryParam(prefixEncoded + keyName1, option1bEncoded);
    verify(target).queryParam(prefixEncoded + keyName2Encoded, option2a);
    verify(target).queryParam(prefixEncoded + keyName2Encoded, option2bEncoded);
}