@Test
public void testgeneratePostUploadUrl() throws MalformedURLException {

    String ssvmdomain = "*.realhostip.com";
    String ipAddress = "10.147.28.14";
    String uuid = UUID.randomUUID().toString();
    //ssvm domain is not set
    String url = ImageStoreUtil.generatePostUploadUrl(null, ipAddress, uuid);
    assertPostUploadUrl(url, ipAddress, uuid);
    //ssvm domain is set to empty value
    url = ImageStoreUtil.generatePostUploadUrl("", ipAddress, uuid);
    assertPostUploadUrl(url, ipAddress, uuid);
    //ssvm domain is set to a valid value
    url = ImageStoreUtil.generatePostUploadUrl(ssvmdomain, ipAddress, uuid);
    assertPostUploadUrl(url, ipAddress.replace(".", "-") + ssvmdomain.substring(1), uuid);
}