CoordinatorFilterBuilder { public static Predicate<CoordinatorStatus> build(UriInfo uriInfo) { CoordinatorFilterBuilder builder = new CoordinatorFilterBuilder(); for (Entry<String, List<String>> entry : uriInfo.getQueryParameters().entrySet()) { if ("uuid".equals(entry.getKey())) { for (String uuidFilter : entry.getValue()) { builder.addUuidFilter(uuidFilter); } } if ("!uuid".equals(entry.getKey())) { for (String notUuidFilter : entry.getValue()) { builder.addNotUuidFilter(notUuidFilter); } } else if ("state".equals(entry.getKey())) { for (String stateFilter : entry.getValue()) { builder.addStateFilter(stateFilter); } } else if ("!state".equals(entry.getKey())) { for (String notStateFilter : entry.getValue()) { builder.addNotStateFilter(notStateFilter); } } else if ("host".equals(entry.getKey())) { for (String hostGlob : entry.getValue()) { builder.addHostGlobFilter(hostGlob); } } else if ("!host".equals(entry.getKey())) { for (String notHostGlob : entry.getValue()) { builder.addNotHostGlobFilter(notHostGlob); } } else if ("machine".equals(entry.getKey())) { for (String machineGlob : entry.getValue()) { builder.addMachineGlobFilter(machineGlob); } } else if ("!machine".equals(entry.getKey())) { for (String notMachineGlob : entry.getValue()) { builder.addNotMachineGlobFilter(notMachineGlob); } } else if ("all".equals(entry.getKey())) { builder.selectAll(); } } return builder.buildPredicate(); }  static CoordinatorFilterBuilder builder(); static Predicate<CoordinatorStatus> build(UriInfo uriInfo); void addUuidFilter(String uuid); void addNotUuidFilter(String notUuid); void addStateFilter(String stateFilter); void addNotStateFilter(String notStateFilter); void addHostGlobFilter(String hostGlob); void addNotHostGlobFilter(String notHostGlob); void addMachineGlobFilter(String machineGlob); void addNotMachineGlobFilter(String notMachineGlob); void selectAll(); Predicate<CoordinatorStatus> buildPredicate(); URI buildUri(URI baseUri); URI buildUri(HttpUriBuilder uriBuilder);  }
@Test public void testAll() { assertTrue(CoordinatorFilterBuilder.build(MockUriInfo.from("fake: assertTrue(CoordinatorFilterBuilder.build(MockUriInfo.from("fake: assertTrue(CoordinatorFilterBuilder.build(MockUriInfo.from("fake: }