@Test
public void testBoth() {

    Assert.assertEquals(p2, p1.both().next(Person.class));
    Assert.assertEquals(p2, p1.both(1).next(Person.class));
    Assert.assertEquals(p1, p2.both().next(Person.class));
    Assert.assertEquals(p1, p2.both(1).next(Person.class));
}