### Question:
SwapSubTypeQuery extends TransformationQuery { @Override public Transformation query() throws QueryException { Map.Entry<CtConstructorCall, CtCodeSnippetExpression> cur = candidateIt.next(); CtConstructorCall tp = cur.getKey(); CtCodeSnippetExpression c = cur.getValue(); SwapSubType swapSubType = new SwapSubType(); swapSubType.setTpAndNewCall(tp, c); return swapSubType; } SwapSubTypeQuery(InputProgram inputProgram); void init(); void commonsCollection(); void gnuTorve(); List<CtCodeSnippetExpression> buildConstructorCall(CtConstructorCall call, Set<String> l, String type, String param); @Override Transformation query(); @Override boolean hasNextTransformation();  }### Answer:
@Test public void query() throws Exception { SwapSubTypeQuery q = new SwapSubTypeQuery(inputProgram); q.query(); }