	@Test
	public void decodeStringTest() throws IOException{

		Pipe<RawDataSchema> pipe = new Pipe<RawDataSchema>(new PipeConfig<RawDataSchema>(RawDataSchema.instance, 100, 4000));
		pipe.initBuffers();
		DataOutputBlobWriter<RawDataSchema> writer = new DataOutputBlobWriter<RawDataSchema>(pipe);
		
		DataOutputBlobWriter.writePackedInt(writer, -63);
		writer.writeUTF("This is a test");
		
		writer.close();
		
		DataInputBlobReader<RawDataSchema> reader = new DataInputBlobReader<RawDataSchema>(pipe);
		
		String stest = PhastDecoder.decodeString(reader, false);
		
		reader.close();
		
		assertTrue(stest.compareTo("This is a test") == 0);
		
	}