### Question:
QueryBuilderFactory { public QueryBuilder createBuilder(Collection<Filter> filters) throws ExecutionException, UnsupportedException { return createBuilder(filters, new ArrayList<FunctionFilter>(), new ArrayList<Disjunction>()); }  QueryBuilder createBuilder(Collection<Filter> filters); QueryBuilder createBuilder(Collection<Filter> filters, Collection<FunctionFilter> functionFilters, Collection<Disjunction> disjunctions); QueryBuilder createFilterBuilderForDisjunctions(Collection<Disjunction> disjunctions);  }### Answer:
@Test public void testCreateBuilderEQ() throws Exception { Collection<Filter> filter = new ArrayList<>(); Set operations = new HashSet<>(); operations.add(Operations.DELETE_PK_EQ); createFilter(filter, operations, Operator.EQ); QueryBuilder queryBuilder = queryBuilderFactory.createBuilder(filter); assertNotNull("the Query builder is not null", queryBuilder); assertEquals("The queryIsCorrect", EQ_QUERY, queryBuilder.toString().replaceAll("\n", "").replaceAll(" ", "")); }
@Test public void testCreateBuilderLT() throws Exception { Collection<Filter> filter = new ArrayList<>(); Set operations = new HashSet<>(); operations.add(Operations.DELETE_PK_LT); createFilter(filter, operations, Operator.LT); QueryBuilder queryBuilder = queryBuilderFactory.createBuilder(filter); assertNotNull("the Query builder is not null", queryBuilder); assertEquals("The queryIsCorrect", LT_QUERY, queryBuilder.toString().replaceAll("\n", "").replaceAll(" ", "")); }
@Test public void testCreateBuilderLET() throws Exception { Collection<Filter> filter = new ArrayList<>(); Set operations = new HashSet<>(); operations.add(Operations.DELETE_PK_LET); createFilter(filter, operations, Operator.LET); QueryBuilder queryBuilder = queryBuilderFactory.createBuilder(filter); assertNotNull("the Query builder is not null", queryBuilder); assertEquals("The queryIsCorrect", LET_QUERY, queryBuilder.toString().replaceAll("\n", "").replaceAll(" ", "")); }
@Test public void testCreateBuilderGT() throws Exception { Collection<Filter> filter = new ArrayList<>(); Set operations = new HashSet<>(); operations.add(Operations.DELETE_PK_GT); createFilter(filter, operations, Operator.GT); QueryBuilder queryBuilder = queryBuilderFactory.createBuilder(filter); assertNotNull("the Query builder is not null", queryBuilder); assertEquals("The queryIsCorrect", GT_QUERY, queryBuilder.toString().replaceAll("\n", "").replaceAll(" ", "")); }
@Test public void testCreateBuilderGET() throws Exception { Collection<Filter> filter = new ArrayList<>(); Set operations = new HashSet<>(); operations.add(Operations.DELETE_PK_GET); createFilter(filter, operations, Operator.GET); QueryBuilder queryBuilder = queryBuilderFactory.createBuilder(filter); assertNotNull("the Query builder is not null", queryBuilder); assertEquals("The queryIsCorrect", GET_QUERY, queryBuilder.toString().replaceAll("\n", "").replaceAll(" ", "")); }