@Test
public void testReadFromESWithFields() throws Exception {
Tap in = new EsTap("cascading-hadoop/artists", query, new Fields("url", "name"));
Pipe pipe = new Pipe("copy");
pipe = new Each(pipe, AssertionLevel.STRICT, new AssertSizeEquals(2));
pipe = new Each(pipe, AssertionLevel.STRICT, new AssertNotNull());
// print out
Tap out = new HadoopPrintStreamTap(Stream.NULL);
build(cfg(), in, out, pipe);