### Question:
CompositeBytes { public void write() { doWrite(); dealPreserve(); } CompositeBytes(Writer writer, PromptBufData promptBuf, byte[] input, int inputStart, int inputCount); boolean hasPrompt(); void write();  }### Answer:
@Test public void testNoPreservedTrivial() { PromptBufData promptBufData = new PromptBufData(); TestWriter writer = new TestWriter(); byte[] input = " ".getBytes(Charsets.UTF_8); CompositeBytes compositeBytes = new CompositeBytes(writer, promptBufData, input, 0, input.length); compositeBytes.write(); assertArrayEquals(input, writer.getResult()); assertEquals(0, promptBufData.getLength()); }