@Test
public void testPutTransition() {

    SetPagesTransitionParameters victim = new SetPagesTransitionParameters();
    PdfPageTransition firstTransition = PdfPageTransition.newInstance(PdfPageTransitionStyle.DISSOLVE, 1, 5);
    victim.putTransition(3, firstTransition);
    Assert.assertEquals(1, victim.getTransitions().size());
    PdfPageTransition secondTransition = PdfPageTransition.newInstance(PdfPageTransitionStyle.BOX_INWARD, 1, 2);
    PdfPageTransition result = victim.putTransition(3, secondTransition);
    Assert.assertEquals(firstTransition, result);
    Assert.assertEquals(1, victim.getTransitions().size());
}