UpdateParent implements FindChildrenStreamEndPlugin.Handler { @Override public void handle(Context context, Metacard parent, List<Metacard> children) { updateField.updateField(parent, children, context); } UpdateParent(UpdateField updateField); void setCatalogUpdateRetry(CatalogUpdateRetry catalogUpdateRetry); @Override void handle(Context context, Metacard parent, List<Metacard> children); @Override void end(Context context, Metacard parentMetacard);  }
@Test public void testHandle() { UpdateParent.UpdateField updateField = mock(UpdateParent.UpdateField.class); UpdateParent updateParent = new UpdateParent(updateField); Context context = mock(Context.class); Metacard parent = mock(Metacard.class); List<Metacard> children = mock(List.class); updateParent.handle(context, parent, children); verify(updateField).updateField(parent, children, context); }