### Question:
TextConstant implements StackManipulation { public Size apply(MethodVisitor methodVisitor, Implementation.Context implementationContext) { methodVisitor.visitLdcInsn(text); return StackSize.SINGLE.toIncreasingSize(); } TextConstant(String text); boolean isValid(); Size apply(MethodVisitor methodVisitor, Implementation.Context implementationContext);  }### Answer:
@Test public void testTextValue() throws Exception { StackManipulation.Size size = new TextConstant(FOO).apply(methodVisitor, implementationContext); assertThat(size.getSizeImpact(), is(1)); assertThat(size.getMaximalSize(), is(1)); verify(methodVisitor).visitLdcInsn(FOO); verifyNoMoreInteractions(methodVisitor); verifyZeroInteractions(implementationContext); }