@Test
public void ifSubschemaSuccessThenSubschemaSuccessElseSubSchemaFailure() {

    ConditionalSchema.builder().ifSchema(PATTERN_STRING_SCHEMA).thenSchema(MAX_LENGTH_STRING_SCHEMA)
            .elseSchema(MIN_LENGTH_STRING_SCHEMA).build().validate("foo");
}