package org.ow2.proactive.scheduling.api.client.v2.beans;

import java.util.ArrayList;
import java.util.List;

import org.junit.Test;

import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.*;

public class GenericInformationTest {
    private static final String ALL = "genericInformation(input : [{ key : \"START_AT\" },{ key : \"blabla\" value : \"value\" }]){\nkey\nvalue\n}\n";

    @Test
    public void getQueryString() throws Exception {
        List<KeyValueInput> input = new ArrayList<>();
        input.add(new KeyValueInput.Builder().key("START_AT").build());
        input.add(new KeyValueInput.Builder().key("blabla").value("value").build());
        GenericInformation genericInformation = new GenericInformation.Builder().input(input).build();
        System.out.print(genericInformation.getQueryString());
        assertThat(genericInformation.getQueryString(), is(ALL));
    }

}
@@ -303,21 +303,22 @@
 rmation(
-input
+filter
  : %5B%7B ke

Fix failing client test