@Test
public void testMissingProperties() throws Exception
{

    String errorMessage = "";
    List<String> requiredProperties = Arrays
        .asList(HERD_BASE_URL_PROPERTY, HERD_USERNAME_PROPERTY, HERD_PASSWORD_PROPERTY, AWS_ROLE_ARN_PROPERTY, AWS_REGION_PROPERTY, NAMESPACE_PROPERTY,
            BUSINESS_OBJECT_DEFINITION_NAME_PROPERTY, BUSINESS_OBJECT_FORMAT_USAGE_PROPERTY, BUSINESS_OBJECT_FORMAT_FILE_TYPE_PROPERTY,
            PRIMARY_PARTITION_VALUE_PROPERTY);
    for (String property : requiredProperties)
    {
        when(propertiesHelper.isBlankOrNull(property)).thenReturn(true);
    }
    try
    {
        herdApiClientOperations.checkPropertiesFile(propertiesHelper, false);
    }
    catch (ApiException e)
    {
        errorMessage = e.getMessage();
    }
    System.out.println(errorMessage);
    for (String property : requiredProperties)
    {
        Assert.assertTrue("Could not find error for " + property, StringUtils.contains(errorMessage, property));
    }
    for (String property : requiredProperties)
    {
        verify(propertiesHelper).isBlankOrNull(property);
    }
    verifyNoMoreInteractionsHelper();
}