@Test
public void testValidateEmrClusterDefinitionConfigurationSubnetListBlankElement()
{

    EmrClusterDefinition emrClusterDefinition = createValidEmrClusterDefinition();
    emrClusterDefinition.setSubnetId(MockEc2OperationsImpl.SUBNET_1 + ", \r\t\n");
    try
    {
        emrClusterDefinitionHelper.validateEmrClusterDefinitionConfiguration(emrClusterDefinition);
        fail("expected IllegalArgumentException, but no exception was thrown");
    }
    catch (Exception e)
    {
        assertEquals("thrown exception", IllegalArgumentException.class, e.getClass());
    }
}