### Question:
VelocityBodyContent extends BodyContent { @Override public void print(boolean b) throws IOException { getEnclosingWriter().print(b); } VelocityBodyContent(JspWriter jspWriter, ASTBlock block,
            InternalContextAdapter context); @Override Reader getReader(); @Override String getString(); @Override void writeOut(Writer out); @Override void newLine(); @Override void print(boolean b); @Override void print(char c); @Override void print(int i); @Override void print(long l); @Override void print(float f); @Override void print(double d); @Override void print(char[] s); @Override void print(String s); @Override void print(Object obj); @Override void println(); @Override void println(boolean x); @Override void println(char x); @Override void println(int x); @Override void println(long x); @Override void println(float x); @Override void println(double x); @Override void println(char[] x); @Override void println(String x); @Override void println(Object x); @Override void clear(); @Override void clearBuffer(); @Override void close(); @Override int getRemaining(); @Override void write(char[] cbuf, int off, int len);  }### Answer:
@Test public void testPrintBoolean() throws IOException { jspWriter.print(true); replay(jspWriter, block, context); content.print(true); verify(jspWriter, block, context); }
@Test public void testPrintChar() throws IOException { jspWriter.print('c'); replay(jspWriter, block, context); content.print('c'); verify(jspWriter, block, context); }
@Test public void testPrintInt() throws IOException { jspWriter.print(42); replay(jspWriter, block, context); content.print(42); verify(jspWriter, block, context); }
@Test public void testPrintLong() throws IOException { jspWriter.print(42l); replay(jspWriter, block, context); content.print(42l); verify(jspWriter, block, context); }
@Test public void testPrintFloat() throws IOException { jspWriter.print(0.2f); replay(jspWriter, block, context); content.print(0.2f); verify(jspWriter, block, context); }
@Test public void testPrintDouble() throws IOException { jspWriter.print(0.2d); replay(jspWriter, block, context); content.print(0.2d); verify(jspWriter, block, context); }
@Test public void testPrintCharArray() throws IOException { jspWriter.print(aryEq("hello".toCharArray())); replay(jspWriter, block, context); content.print("hello".toCharArray()); verify(jspWriter, block, context); }
@Test public void testPrintString() throws IOException { jspWriter.print("hello"); replay(jspWriter, block, context); content.print("hello"); verify(jspWriter, block, context); }
@Test public void testPrintObject() throws IOException { jspWriter.print((Object) new Integer(42)); replay(jspWriter, block, context); content.print((Object) new Integer(42)); verify(jspWriter, block, context); }