@Test
public void testIsSatisfiedBy() throws Exception {

  PresentationToken pt =
    (PresentationToken) XmlUtils.getObjectFromXML(getClass().getResourceAsStream(
        "/eu/abc4trust/sampleXml/presentationTokens/presentationTokenHotelOption1.xml"), true);
  PresentationTokenDescription ptd = pt.getPresentationTokenDescription();
  PresentationPolicyAlternatives ppa =
    (PresentationPolicyAlternatives) XmlUtils.getObjectFromXML(getClass().getResourceAsStream(
        "/eu/abc4trust/sampleXml/presentationPolicies/presentationPolicyAlternativesHotel.xml"), true);
  MyPresentationPolicy mypp = new MyPresentationPolicy(ppa.getPresentationPolicy().get(0));
  
  assertTrue(mypp.isSatisfiedBy(ptd, null, null));
}