final Properties props = new Properties();
final URI uri = DiscoveryTestHelper.createDefaultURI(hostname);
IServiceTypeID serviceTypeID = ServiceIDFactory.getDefault().createServiceTypeID(discoveryLocator.getServicesNamespace(), services, new String[]{scope}, new String[]{protocol}, namingAuthority);
assertNotNull(serviceTypeID);
final ServiceProperties serviceProperties = new ServiceProperties(props);
serviceProperties.setPropertyString(TEST_NAME, getName());
testId = Long.toString(random.nextLong());
serviceProperties.setPropertyString(getName() + "testIdentifier", testId);
serviceProperties.setPropertyString(getName() + "servicePropertiesString", "serviceProperties");
serviceProperties.setProperty(getName() + "servicePropertiesIntegerMax", new Integer(Integer.MIN_VALUE));
serviceProperties.setProperty(getName() + "servicePropertiesIntegerMin", new Integer(Integer.MAX_VALUE));
serviceProperties.setProperty(getName() + "servicePropertiesBoolean", new Boolean(false));
serviceProperties.setPropertyBytes(getName() + "servicePropertiesByte", new byte[]{-127, -126, -125, 0, 1, 2, 3, 'a', 'b', 'c', 'd', 126, 127});
serviceInfo = new ServiceInfo(uri, DiscoveryTestHelper.SERVICENAME, serviceTypeID, 1, 1, serviceProperties, ttl);
assertNotNull(serviceInfo);
}