Configuration conf = new Configuration();
FileSystem localFS = FileSystem.getLocal(conf);
FileUtil.writeProto(localFS, path, proto);
Message defaultInstance = TestMessageProto.getDefaultInstance();
TestMessageProto message = (TestMessageProto)
FileUtil.loadProto(localFS, new Path(TEST_PATH+"/file.bin"),
defaultInstance);
assertEquals(proto, message);
}