### Question:
BundleFilterTry implements BundleFilter { @Override public boolean filter(Bundle row) { boolean tryResult = tryDo.filter(row); return tryResult || (catchDo == null) || catchDo.filter(row); }  @Override boolean filter(Bundle row);  }### Answer:
@Test public void failThenPass() throws IOException { Bundle bundle = new ListBundle(); BundleFilterTry filter = (BundleFilterTry) Configs.decodeObject( BundleFilter.class, "try: {fail {}}"); Assert.assertTrue(filter.filter(bundle)); }
@Test public void failThenFail() throws IOException { Bundle bundle = new ListBundle(); BundleFilterTry filter = (BundleFilterTry) Configs.decodeObject( BundleFilter.class, "try: {fail {}}, catch: {fail {}}"); Assert.assertFalse(filter.filter(bundle)); }
@Test public void passThenFail() throws IOException { Bundle bundle = new ListBundle(); BundleFilterTry filter = (BundleFilterTry) Configs.decodeObject( BundleFilter.class, "try: {true {}}, catch: {fail {}}"); Assert.assertTrue(filter.filter(bundle)); }