@Test public void throwsForNonParcelableProperty() throws Exception {

  TypeElement type = elements.getTypeElement(SampleTypeWithNonSerializable.class.getCanonicalName());
  AutoValueExtension.Context context = createContext(type);
  processingEnvironment.setOption(AutoValueParcelExtension.FAIL_EXPLOSIVELY, "true");
  try {
    extension.generateClass(context, "Test_AnnotatedType", "SampleTypeWithNonSerializable", true);
    fail();
  } catch (AutoValueParcelException e) {}
}