test_class.file: servers/sip-presence/sip-event/subscription/sbb/src/test/java/org/mobicents/slee/sipevent/server/subscription/eventlist/ServiceTypePackageVerifierTest.java
test_class.identifier: ServiceTypePackageVerifierTest
test_case.body: @Test
  	public void test() throws JAXBException, IOException {
  
  		// read rls service xml
  		InputStream is = ServiceTypePackageVerifierTest.class
  				.getResourceAsStream("rls-services-example.xml");
  		JAXBContext context = JAXBContext.newInstance("org.openxdm.xcap.client.appusage.rlsservices.jaxb");
  		Unmarshaller unmarshaller = context.createUnmarshaller();
  		RlsServices rlsServices = (RlsServices) unmarshaller.unmarshal(is);		
  		is.close();
  		Assert
  				.assertTrue(new ServiceTypePackageVerifier().hasPackage(rlsServices.getService().get(0), "presence"));
  		
  	}
test_case.class_method_signature: ServiceTypePackageVerifierTest.test()
test_case.full_signature: @Test public void test()
test_case.identifier: test
test_case.invocations: getResourceAsStream newInstance createUnmarshaller unmarshal close assertTrue hasPackage get getService
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void test()
focal_class.file: servers/sip-presence/sip-event/subscription/sbb/src/main/java/org/mobicents/slee/sipevent/server/subscription/eventlist/ServiceTypePackageVerifier.java
focal_class.identifier: ServiceTypePackageVerifier
focal_class.class_method_signature: ServiceTypePackageVerifier.hasPackage(ServiceType serviceType, String eventPackage)
focal_class.full_signature: public boolean hasPackage(ServiceType serviceType, String eventPackage)
focal_class.identifier: hasPackage
focal_class.modifiers: public
focal_class.parameters: (ServiceType serviceType, String eventPackage)
focal_class.return: boolean
focal_class.signature: boolean hasPackage(ServiceType serviceType, String eventPackage)
focal_method.body: public boolean hasPackage(ServiceType serviceType, String eventPackage) {		
  		for (Object obj : serviceType.getPackages().getPackageAndAny()) {
  			JAXBElement element = (JAXBElement) obj;
  			if (element.getName().getLocalPart().equals("package") && element.getValue().equals(eventPackage)) {
  				return true;
  			}
  		}
  		return false;
  	}
focal_method.class_method_signature: ServiceTypePackageVerifier.hasPackage(ServiceType serviceType, String eventPackage)
focal_method.full_signature: public boolean hasPackage(ServiceType serviceType, String eventPackage)
focal_method.identifier: hasPackage
focal_method.invocations: getPackageAndAny getPackages equals getLocalPart getName equals getValue
focal_method.modifiers: public
focal_method.parameters: (ServiceType serviceType, String eventPackage)
focal_method.return: boolean
focal_method.signature: boolean hasPackage(ServiceType serviceType, String eventPackage)