AssertJUnit.assertTrue( refElement.getTokens().get(0) instanceof String );
AssertJUnit.assertEquals( "photos-", (String) refElement.getTokens().get(0) );
}
{
AssertJUnit.assertTrue( refElement.getTokens().get(1) instanceof AmpReference );
AmpReference ref = (AmpReference) refElement.getTokens().get(1);
AssertJUnit.assertEquals( "&(1,0)", ref.getCanonicalForm() );
AssertJUnit.assertEquals( 1, ref.getPathIndex() );
AssertJUnit.assertEquals( 0, ref.getKeyGroup() );
}
{
AssertJUnit.assertTrue( refElement.getTokens().get(2) instanceof String );
AssertJUnit.assertEquals( "-bob", (String) refElement.getTokens().get(2) );
}