public static CoderProvider getCoderProvider() {
    return new ProtoCoderProvider();
  }
@Test
  public void testProviderCannotProvideCoder() throws Exception {
    thrown.expect(CannotProvideCoderException.class);
    thrown.expectMessage("java.lang.Integer is not a subclass of com.google.protobuf.Message");

    ProtoCoder.getCoderProvider()
        .coderFor(new TypeDescriptor<Integer>() {}, Collections.emptyList());
  }