@Test
public void testMissingPropertiesSqs() 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);
    for (String property : requiredProperties)
    {
        when(propertiesHelper.isBlankOrNull(property)).thenReturn(false);
    }
    try
    {
        when(propertiesHelper.isBlankOrNull(AWS_SQS_QUEUE_URL_PROPERTY)).thenReturn(true);
        herdApiClientOperations.checkPropertiesFile(propertiesHelper, true);
    }
    catch (ApiException e)
    {
        errorMessage = e.getMessage();
    }
    System.out.println(errorMessage);
    for (String property : requiredProperties)
    {
        Assert.assertFalse("Unexpected error for " + property, StringUtils.contains(errorMessage, property));
    }
    Assert.assertTrue("Could not find error for " + AWS_SQS_QUEUE_URL_PROPERTY, StringUtils.contains(errorMessage, AWS_SQS_QUEUE_URL_PROPERTY));
    for (String property : requiredProperties)
    {
        verify(propertiesHelper).isBlankOrNull(property);
    }
    verify(propertiesHelper).isBlankOrNull(AWS_SQS_QUEUE_URL_PROPERTY);
    verifyNoMoreInteractionsHelper();
}