@Test
public void testSnapshot() {

  ProtobufSerializer<SimpleMessage> serializer =
      ProtobufSerializer.forMessageGeneratedClass(SimpleMessage.class);
  ProtobufSerializerSnapshot snapshot = serializer.snapshot();
  assertThat(snapshot.getGeneratedJavaName(), is(SimpleMessage.class.getName()));
  assertThat(snapshot.getMessageName(), is(SimpleMessage.getDescriptor().getFullName()));
  assertThat(snapshot.getDescriptorSet(), notNullValue());
}