test_class.file: http/src/test/java/ro/polak/http/servlet/ServletPrintWriterTest.java
test_class.identifier: ServletPrintWriterTest
test_case.body: @Test(expected = IllegalStateException.class)
      public void shouldNotAllowToWriteEndMoreThanOnce() {
          ServletPrintWriter servletPrintWriter = new ServletPrintWriter(mock(ServletOutputStream.class));
          try {
              servletPrintWriter.writeEnd();
          } catch (Throwable e) {
              fail("Should not throw any exception here");
          }
          servletPrintWriter.writeEnd();
      }
test_case.class_method_signature: ServletPrintWriterTest.shouldNotAllowToWriteEndMoreThanOnce()
test_case.full_signature: @Test(expected = IllegalStateException.class) public void shouldNotAllowToWriteEndMoreThanOnce()
test_case.identifier: shouldNotAllowToWriteEndMoreThanOnce
test_case.invocations: mock writeEnd fail writeEnd
test_case.modifiers: @Test(expected = IllegalStateException.class) public
test_case.parameters: ()
test_case.return: void
test_case.signature: void shouldNotAllowToWriteEndMoreThanOnce()
focal_class.declarator: wasWriteEndAlreadyCalled = false
focal_class.modifier: private
focal_class.original_string: private boolean wasWriteEndAlreadyCalled = false;
focal_class.type: boolean
focal_class.var_name: wasWriteEndAlreadyCalled
focal_class.file: http/src/main/java/ro/polak/http/servlet/ServletPrintWriter.java
focal_class.identifier: ServletPrintWriter
focal_class.class_method_signature: ServletPrintWriter.ServletPrintWriter(final OutputStream outputStream)
focal_class.full_signature: public  ServletPrintWriter(final OutputStream outputStream)
focal_class.identifier: ServletPrintWriter
focal_class.modifiers: public
focal_class.parameters: (final OutputStream outputStream)
focal_class.signature:  ServletPrintWriter(final OutputStream outputStream)
focal_class.class_method_signature: ServletPrintWriter.writeEnd()
focal_class.full_signature: public void writeEnd()
focal_class.identifier: writeEnd
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void writeEnd()
focal_class.superclass: extends PrintWriter
focal_method.body: public void writeEnd() {
          if (wasWriteEndAlreadyCalled) {
              throw new IllegalStateException("This method can be called once only.");
          }
          wasWriteEndAlreadyCalled = true;
      }
focal_method.class_method_signature: ServletPrintWriter.writeEnd()
focal_method.full_signature: public void writeEnd()
focal_method.identifier: writeEnd
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: void
focal_method.signature: void writeEnd()