@Test
public void testInstantiate_invalid() {

  try {
    Serializers.instantiate(PrivateConstructorSerializer.class, TypeToken.of(String.class));
    fail("Instatiation should fail for non-serializers.");
  } catch (RuntimeException expected) {
    // expected
  }
}