@Test
public void testValidateValueType()
{

    TextPattern textTP = new TextPattern( Lists.newArrayList( textSegment ) );
    TextPattern numberTP = new TextPattern( Lists.newArrayList( sequentialSegment ) );
    for ( ValueType valueType : ValueType.values() )
    {
        if ( valueType.equals( ValueType.TEXT ) )
        {
            assertTrue( TextPatternValidationUtils.validateValueType( textTP, valueType ) );
        }
        else if ( valueType.equals( ValueType.NUMBER ) )
        {
            assertTrue( TextPatternValidationUtils.validateValueType( numberTP, valueType ) );
        }
        else
        {
            assertFalse( TextPatternValidationUtils.validateValueType( textTP, valueType ) );
            assertFalse( TextPatternValidationUtils.validateValueType( numberTP, valueType ) );
        }
    }
}