MetadataJobProperty property2 = project2.getProperty(MetadataJobProperty.class);
property2.addChildren(list);
MetadataViewJobFilter filter = new MetadataViewJobFilter("name=value");
ListView view = new ListView("Test", hudson);
view.getJobFilters().add(filter);
hudson.addView(view);
WebClient web = createWebClient();
Page page = web.goTo("/view/Test/api/json", "application/json");
JSONObject json = (JSONObject)JSONSerializer.toJSON(page.getWebResponse().getContentAsString());