@Test
public void validateBooleanDataValueWhenValuesAreAcceptableTrue()
    throws WebMessageException
{

    // Given
    final DataElement aBooleanTypeDataElement = new DataElement();
    final String normalizedBooleanValue = "true";
    aBooleanTypeDataElement.setValueType( BOOLEAN );
    // Then
    String aBooleanDataValue = "true";
    aBooleanDataValue = dataValidator.validateAndNormalizeDataValue( aBooleanDataValue, aBooleanTypeDataElement );
    assertThat( aBooleanDataValue, is( normalizedBooleanValue ) );
    aBooleanDataValue = "1";
    aBooleanDataValue = dataValidator.validateAndNormalizeDataValue( aBooleanDataValue, aBooleanTypeDataElement );
    assertThat( aBooleanDataValue, is( normalizedBooleanValue ) );
    aBooleanDataValue = "t";
    aBooleanDataValue = dataValidator.validateAndNormalizeDataValue( aBooleanDataValue, aBooleanTypeDataElement );
    assertThat( aBooleanDataValue, is( normalizedBooleanValue ) );
    aBooleanDataValue = "True";
    aBooleanDataValue = dataValidator.validateAndNormalizeDataValue( aBooleanDataValue, aBooleanTypeDataElement );
    assertThat( aBooleanDataValue, is( normalizedBooleanValue ) );
    aBooleanDataValue = "TRUE";
    aBooleanDataValue = dataValidator.validateAndNormalizeDataValue( aBooleanDataValue, aBooleanTypeDataElement );
    assertThat( aBooleanDataValue, is( normalizedBooleanValue ) );
}