@Test
/**
 * Writes a default file to a test ByteBuffer, and compare its contents to the target.
 */
public void testWriteDefaultFileToByteBuffer() throws Exception {

	ByteBuffer outputBuffer = ByteBuffer.allocate(10000);
	HKXWriter writer = new HKXWriter(outputBuffer, enumResolver);
	writer.write(file);
	byte[] outArray = new byte[outputBuffer.limit()];
	outputBuffer.get(outArray);
	assertArrayEquals(
			outArray,
			FileUtils.resourceToByteArray(TEST_BASE_REXOURCE_TARGET));
}