### Question:
BundleFilterError implements BundleFilter { @Override public boolean filter(Bundle row) { message.fillInStackTrace(); throw Throwables.propagate(message); }  @Override boolean filter(Bundle row);  }### Answer:
@Test public void type() throws IOException { BundleFilterError filter = decodeObject(BundleFilterError.class, "type: java.io.IOException, message: hello world"); thrown.expectCause(isA(IOException.class)); filter.filter(new ListBundle()); }
@Test public void message() throws IOException { BundleFilterError filter = decodeObject(BundleFilterError.class, "message:hello world"); thrown.expectMessage("hello world"); filter.filter(new ListBundle()); }