@Test
public void shouldThrowExceptionIfAWSUseIamRoleNotWithinExpectedValues() {

    GoEnvironment sut = new GoEnvironment(mockEnvironmentVariables
            .with(AWS_USE_IAM_ROLE,"blue")
            .build());
    try {
        sut.hasAWSUseIamRole();
        fail("Expected exception");
    } catch (IllegalArgumentException e) {
        assertEquals(
                "Unexpected value in AWS_USE_IAM_ROLE environment variable; was blue, " +
                        "but expected one of the following [true, false, yes, no, on, off]",
                e.getMessage());
    }
}