### Question:
ProtoIndex { public void updateProtoLocation(final String src, final String dest) { Objects.requireNonNull(src); Objects.requireNonNull(dest); protoLocations.put(src, dest); } private  ProtoIndex(final Index index); static ProtoIndex empty(); static ProtoIndex parse(final byte[] bytes); void updateProtoLocation(final String src, final String dest); void updatePackageVersion(final String pkg, final SchemaVersion version); void updateProtoDependencies(final Path proto, final Set<Path> paths); ImmutableSetMultimap<Path, Path> getProtoDependencies(); boolean removeProtoLocation(final String pkg); Map<String, String> getProtoLocations(); Map<String, SchemaVersion> getPackageVersions(); String toProtoString(); @Override String toString(); byte[] toByteArray();  }### Answer:
@Test public void updateProtoLocation() { final ProtoIndex protoIndex = ProtoIndex.empty(); protoIndex.updateProtoLocation("/pkg1/protofile.proto", "dest1"); protoIndex.updateProtoLocation("/pkg2/protofile.proto", "dest2"); final ProtoIndex after = ProtoIndex.parse(protoIndex.toByteArray()); assertThat(after.getProtoLocations(), equalTo(ImmutableMap.of( "/pkg1/protofile.proto", "dest1", "/pkg2/protofile.proto", "dest2" ))); }