### Question:
DelimitedTextSequencer extends AbstractTextSequencer { public void setSplitPattern( String regularExpression ) throws PatternSyntaxException { CheckArg.isNotNull(regularExpression, "regularExpression"); splitPattern = Pattern.compile(regularExpression); }  void setSplitPattern( String regularExpression );  }### Answer:
@Test public void shouldSequencePipeDelimitedFileWithMultipleLines() { input = getTestDocument("multiLinePipeDelimitedFile.csv"); sequencer.setSplitPattern("\\|"); sequencer.sequence(input, output, context); assertThat(output.getProperty("text:row", "jcr:primaryType"), is(notNullValue())); assertThat((Name)output.getProperty("text:row", "jcr:primaryType").getFirstValue(), is(JcrNtLexicon.UNSTRUCTURED)); final int ROW_COUNT = 6; for (int row = 1; row <= ROW_COUNT; row++) { String[] columns = new String[] {"foo", "bar", "baz"}; for (int col = 1; col <= columns.length; col++) { assertThat((Name)output.getProperty("text:row[" + row + "]/text:column[" + col + "]", "jcr:primaryType").getFirstValue(), is(JcrNtLexicon.UNSTRUCTURED)); assertThat((Name)output.getProperty("text:row[" + row + "]/text:column[" + col + "]", "jcr:mixinTypes").getFirstValue(), is(TextSequencerLexicon.COLUMN)); assertThat((String)output.getProperty("text:row[" + row + "]/text:column[" + col + "]", "text:data").getFirstValue(), is(columns[col - 1])); } } }