Messager messager = new TestMessager();
elements = rule.getElements();
types = rule.getTypes();
processingEnvironment = new TestProcessingEnvironment(messager, elements, types);
}
<BUG>@Test(expected = AutoParcelException.class)
public void throwsForNonParcelableProperty() throws Exception {
</BUG>
TypeElement type = elements.getTypeElement(SampleTypeWithNonSerializable.class.getCanonicalName());
<BUG>AutoValueExtension.Context context = createContext(type);
extension.generateClass(context, "Test_AnnotatedType", "SampleTypeWithNonSerializable", true);
fail();
}</BUG>
@Test public void acceptsParcelableProperties() throws Exception {

Messager messager = new TestMessager();
elements = rule.getElements();
types = rule.getTypes();
processingEnvironment = new TestProcessingEnvironment(messager, elements, types);
}
@Test public void throwsForNonParcelableProperty() throws Exception {
TypeElement type = elements.getTypeElement(SampleTypeWithNonSerializable.class.getCanonicalName());
AutoValueExtension.Context context = createContext(type);
try {
extension.generateClass(context, "Test_AnnotatedType", "SampleTypeWithNonSerializable", true);
fail();
} catch (AutoParcelException e) {}
}
@Test public void acceptsParcelableProperties() throws Exception {
