@Test
public void testValidateValueTypeWithDifferentTextPattern()
{

    TextPattern just_text = new TextPattern( Lists.newArrayList( textSegment ) );
    TextPattern just_random = new TextPattern( Lists.newArrayList( randomSegment ) );
    TextPattern just_sequential = new TextPattern( Lists.newArrayList( sequentialSegment ) );
    TextPattern just_orgunitcode = new TextPattern( Lists.newArrayList( orgUnitCodeSegment ) );
    TextPattern just_currentdate = new TextPattern( Lists.newArrayList( currentDateSegment ) );
    TextPattern text_and_numbers = new TextPattern( Lists.newArrayList( textSegment, sequentialSegment ) );
    TextPattern just_numbers = new TextPattern( Lists.newArrayList( sequentialSegment ) );
    assertTrue( TextPatternValidationUtils.validateValueType( just_text, ValueType.TEXT ) );
    assertFalse( TextPatternValidationUtils.validateValueType( just_text, ValueType.NUMBER ) );
    assertTrue( TextPatternValidationUtils.validateValueType( just_random, ValueType.TEXT ) );
    assertFalse( TextPatternValidationUtils.validateValueType( just_random, ValueType.NUMBER ) );
    assertTrue( TextPatternValidationUtils.validateValueType( just_sequential, ValueType.TEXT ) );
    assertTrue( TextPatternValidationUtils.validateValueType( just_sequential, ValueType.NUMBER ) );
    assertTrue( TextPatternValidationUtils.validateValueType( just_orgunitcode, ValueType.TEXT ) );
    assertFalse( TextPatternValidationUtils.validateValueType( just_orgunitcode, ValueType.NUMBER ) );
    assertTrue( TextPatternValidationUtils.validateValueType( just_currentdate, ValueType.TEXT ) );
    assertFalse( TextPatternValidationUtils.validateValueType( just_currentdate, ValueType.NUMBER ) );
    assertTrue( TextPatternValidationUtils.validateValueType( text_and_numbers, ValueType.TEXT ) );
    assertFalse( TextPatternValidationUtils.validateValueType( text_and_numbers, ValueType.NUMBER ) );
    assertTrue( TextPatternValidationUtils.validateValueType( just_numbers, ValueType.TEXT ) );
    assertTrue( TextPatternValidationUtils.validateValueType( just_numbers, ValueType.NUMBER ) );
}