@Test
@Ignore("DEX-1801: Fix Mockito Problem in Release TeamCity Job")
public void encodeCollectionFormatQueryParam_multipleElementList() {

    final List<String> values = new ArrayList<>();
    values.add("number1");
    values.add("number2");
    for (CollectionFormatType cft : CollectionFormatType.values()) {
        WebTarget target = mock(WebTarget.class);
        WrappedWebTarget wrapped = new WrappedWebTarget(target);
        WrappedWebTarget result =
                HttpUtils.encodeCollectionFormatQueryParam(wrapped, "unitTest", values, cft);
        assertNotNull(result);
        if (cft == CollectionFormatType.CommaSeparated) {
            verify(target).queryParam("unitTest", "number1,number2");
        } else if (cft == CollectionFormatType.PipeSeparated) {
            verify(target).queryParam("unitTest", "number1%7Cnumber2");
        } else if (cft == CollectionFormatType.SpaceSeparated) {
            verify(target).queryParam("unitTest", "number1%20number2");
        } else if (cft == CollectionFormatType.TabSeparated) {
            verify(target).queryParam("unitTest", "number1%09number2");
        } else if (cft == CollectionFormatType.Multi) {
            verify(target).queryParam("unitTest", "number1", "number2");
        } else {
            fail("Unrecognized CollectionFormatType: " + cft.toString());
        }
    }
}