* Test get followers.
*/
@Test
public void testGetFollowers()
{
Person ford = jpaPersonMapper.findByAccountId("fordp");
Person sagan = jpaPersonMapper.findByAccountId("csagan");
assertEquals("followers/followings should be 0 initially", 0, ford.getFollowersCount());
assertEquals("followers/followings should be 0 initially", 0, ford.getFollowingCount());
assertEquals("followers/followings should be 0 initially", 0, sagan.getFollowersCount());
assertEquals("followers/followings should be 0 initially", 0, sagan.getFollowingCount());
jpaPersonMapper.addFollower(ford.getId(), sagan.getId());
getEntityManager().clear();
ford = jpaPersonMapper.findByAccountId("fordp");
sagan = jpaPersonMapper.findByAccountId("csagan");
assertEquals("sagan should have 1 follower", 1, sagan.getFollowersCount());
assertEquals("sagan follows no one", 0, sagan.getFollowingCount());
PagedSet<Person> connections = jpaPersonMapper.getFollowers(sagan.getAccountId(), 0, 6);
assertNotNull(connections);
assertEquals("sagan is followed by ford", "fordp", connections.getPagedSet().get(0).getAccountId());
}