DAStatementWriter extends AbstractDAWriter<T> { public DAStatementWriter<T> appendType(DAType type) throws IOException { commons.appendType(type); return this; } DAStatementWriter(FileContext fileContext, T parent, int indentOffset);   DAStatementWriter(CommonMethods commonMethods, T parent); DAStatementWriter<T> start(); DAStatementWriter<T> append(CharSequence s); DAStatementWriter<T> append(char c); DAStatementWriter<T> appendType(DAType type); DAStatementWriter<T> appendTypeArgs(List<DAType> typeArgs); DAStatementWriter<T> appendParamValues(@Nonnull List<DAParameter> params,
                                                @Nullable Function<DAParameter, String> parameterNameFunction); DAStatementWriter<T> appendParamValues(@Nonnull List<DAParameter> params); T end();  }
@Test public void appendType_delegates_to_CommonMethods() throws Exception { FileContextTestImpl fileContext = new FileContextTestImpl(); DAType daType = DATypeFactory.from(String.class); methodWriterWithMock(fileContext).appendType(daType); verify(commonMethods).appendType(daType); verifyNoInteraction(fileContext); }