public void testSpillBuffer() throws Exception {
Configuration conf = new HamaConfiguration();
String fileName = System.getProperty("java.io.tmpdir") + File.separatorChar
+ new BigInteger(128, new SecureRandom()).toString(32);
SpilledDataProcessor processor = new WriteSpilledDataProcessor(fileName);
processor.init(conf);
SpillingDataOutputBuffer outputBuffer = new SpillingDataOutputBuffer(2,
1024, 1024, true, processor);
Text text = new Text("Testing the spillage of spilling buffer");
for (int i = 0; i < 100; ++i) {
text.write(outputBuffer);