Tap source = getPlatform().getTextFile( inputFileLower );
Tap sink = getPlatform().getTextFile( new Fields( "line" ), new Fields( "num", "char" ), getOutputPath( "coercefields" ), SinkMode.REPLACE );
Pipe pipe = new Pipe( "coerce" );
Function splitter = new RegexSplitter( new Fields( "num", "char" ).applyTypes( String.class, String.class ), " " );
pipe = new Each( pipe, new Fields( "line" ), splitter );
pipe = new Coerce( pipe, new Fields( "num" ).applyTypes( Integer.class ) );
pipe = new Each( pipe, new Fields( "num" ), AssertionLevel.STRICT, new AssertExpression( "num instanceof Integer", Object.class ) );