### Question:
OverlayView implements ExpandedView.ExpandedViewCallback { void removeExpandedView(Activity activity) { activity.getWindowManager().removeView(expandedView); } OverlayView(Context context, DragHelper dragHelper, ExpandedView expandedView); @Override void finish(); @Nullable @Override View findViewById(int id); @Override void onPageSelected(Page page);  }### Answer:
@Test public void removeExpandedView() { view.removeExpandedView(activity); verify(windowManager).removeView(eq(expandedView)); }