public AnnouncerHostPrefixGenerator(String hostName)
  {
    if (hostName == null)
    {
      _hostName = null;
    }
    else
    {
      // Since just want to use the machine name for pre-fix and not the entire FQDN to reduce the size of name
      int machineNameEndIndex = hostName.indexOf('.');
      _hostName = machineNameEndIndex > 0 ? hostName.substring(0, machineNameEndIndex) : hostName;
    }
  }
@Test(dataProvider = "prefixGeneratorDataProvider")
  public void testAnnouncerHostPrefixGenerator(String hostName, String expectedPrefix)
  {
    AnnouncerHostPrefixGenerator prefixGenerator = new AnnouncerHostPrefixGenerator(hostName);
    String actualPrefix = prefixGenerator.generatePrefix();
    Assert.assertEquals(actualPrefix, expectedPrefix);
  }