@Test
public void testWriteBlockUnaligned() throws IOException {

	CharArrayWriter charArrayWriter = new CharArrayWriter();
	String unalignedOutput = "非对齐测试中文输出";
	try (WriterOutputStream writerOutputStream = new WriterOutputStream(
			charArrayWriter, StringPool.UTF8, true)) {
		byte[] unalignedInput = unalignedOutput.getBytes(StringPool.UTF8);
		writerOutputStream.write(unalignedInput[0]);
		writerOutputStream.write(
			unalignedInput, 1, unalignedInput.length - 2);
		writerOutputStream.write(unalignedInput[unalignedInput.length - 1]);
	}
	Assert.assertEquals(unalignedOutput, charArrayWriter.toString());
}