SwipeLayout extends FrameLayout { public void startWith(int position) { makeSureOrientationStrategy(); orientationStrategy.startWith(position); } SwipeLayout(Context context);  SwipeLayout(Context context, AttributeSet attrs);  SwipeLayout(Context context, AttributeSet attrs, int defStyleAttr); @TargetApi(Build.VERSION_CODES.LOLLIPOP)  SwipeLayout(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes); void setOrientation(Orientation orientation); void setOrientation(OrientationStrategyFactory factory); void startWith(int position); void anchor(Integer... points); void setOnTranslateChangeListener(OnTranslateChangeListener listener); @Override boolean onInterceptTouchEvent(MotionEvent ev); @Override boolean onTouchEvent(MotionEvent event); void translateTo(int position);  }
@Test public void whenStartWith_forwardToOrientationStrategy() { swipeLayout.startWith(0); verify(orientationStrategy).startWith(0); verifyNoMoreInteractions(orientationStrategy); }