### Question:
EndMeetingPageTransformer implements PageTransformer { @Override public void transformPage(View view, float position) { int pageWidth = view.getWidth(); if (position < 0) { view.setAlpha(1 + position * 2); } else { view.setAlpha(1); view.setTranslationX((int) (pageWidth * -position * 0.7)); view.setScaleX(1 - position / 8); view.setScaleY(1 - position / 8); } }  @Override void transformPage(View view, float position);  }### Answer:
@Test public void whenStillThenShowsProperly() { out.transformPage(mockView, 0); verify(mockView).setAlpha(1f); verify(mockView).setTranslationX(0.0f); verify(mockView).setScaleX(1f); verify(mockView).setScaleY(1f); }
@Test public void whenDissapearingToTheLeft() { out.transformPage(mockView, -0.25f); verify(mockView).setAlpha(0.5f); }
@Test public void whenAppearingFromTheRight() { out.transformPage(mockView, 0.5f); verify(mockView).setAlpha(1f); verify(mockView).setTranslationX(-35f); verify(mockView).setScaleX((float) (1 - 0.5 / 8)); verify(mockView).setScaleY((float) (1 - 0.5 / 8)); }