/**
  * Tests getPerson with a UserId typed as Viewerid. The Id string is set in the token in the field
  * viewerId.
  *
  * @throws Exception
  */
 @Test
 public void testGetExpectedPersonByViewerId() throws Exception {
   SecurityToken token = FakeGadgetToken.createToken("viewerId=john.doe");
   Future<Person> selectedObject =
       personService.getPerson(VIEWER, Collections.<String>emptySet(), token);
   Person person = selectedObject.get();
   assertEquals(JOHN_DOE.getUserId(), person.getId());
 }