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

    final List<LifecycleState> values = new ArrayList<>();
    values.add(LifecycleState.Provisioning);
    values.add(LifecycleState.Stopping);
    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", "PROVISIONING,STOPPING");
        } else if (cft == CollectionFormatType.PipeSeparated) {
            verify(target).queryParam("unitTest", "PROVISIONING%7CSTOPPING");
        } else if (cft == CollectionFormatType.SpaceSeparated) {
            verify(target).queryParam("unitTest", "PROVISIONING%20STOPPING");
        } else if (cft == CollectionFormatType.TabSeparated) {
            verify(target).queryParam("unitTest", "PROVISIONING%09STOPPING");
        } else if (cft == CollectionFormatType.Multi) {
            verify(target).queryParam("unitTest", "PROVISIONING", "STOPPING");
        } else {
            fail("Unrecognized CollectionFormatType: " + cft.toString());
        }
    }
}