AbstractDataServiceVisitor implements ElementVisitor<String, Writer> ,ProcessorConstants { StringBuilder getStringBuilder() { return new StringBuilder(); } AbstractDataServiceVisitor(ProcessingEnvironment environment); @Override String visitType(TypeElement typeElement, Writer writer); @Override String visit(Element e, Writer p); @Override String visit(Element e); @Override String visitPackage(PackageElement e, Writer p); @Override String visitVariable(VariableElement e, Writer p); @Override String visitExecutable(ExecutableElement e, Writer p); @Override String visitTypeParameter(TypeParameterElement e, Writer p); @Override String visitUnknown(Element e, Writer p);  }
@Test public void testGetStringBuilder() { StringBuilder stringBuilder = instance.getStringBuilder(); assertThat(stringBuilder).isNotNull(); assertThat(stringBuilder.length()).isEqualTo(0); }