### Question:
SoapHeaderScanner { public boolean scan(IApimanBuffer buffer) throws SoapEnvelopeNotFoundException { if (this.buffer == null) { this.buffer = buffer; } else { this.buffer.append(buffer); } boolean scanComplete = doScan(); if (!scanComplete && this.buffer.length() >= getMaxBufferLength()) { throw new SoapEnvelopeNotFoundException(); } return scanComplete; } SoapHeaderScanner(); boolean scan(IApimanBuffer buffer); int getMaxBufferLength(); void setMaxBufferLength(int maxBufferLength); boolean hasXmlPreamble(); String getXmlPreamble(); String getEnvelopeDeclaration(); String getHeaders(); byte[] getRemainingBytes();  }### Answer:
@Test public void testScanNoSoap() throws SoapEnvelopeNotFoundException { String testData = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin finibus mauris " + "vel fermentum finibus. Proin lacus nulla, placerat in velit tristique, semper congue nisi. " + "Quisque ultricies metus felis, eu aliquet ligula gravida euismod. Integer et nulla eget " + "metus pretium consectetur eu id arcu. Fusce odio turpis, gravida sit amet finibus eu, " + "consequat in est. Nunc eu volutpat leo. Praesent sollicitudin est vitae lacus egestas, " + "iaculis dictum libero suscipit. Morbi vitae egestas diam. Nulla eu molestie urna."; IApimanBuffer buffer = new ByteBuffer(testData); SoapHeaderScanner scanner = new SoapHeaderScanner(); boolean done = scanner.scan(buffer); Assert.assertFalse("Expected the scan to *not* complete.", done); }