@Test
public void testInterceptEventWithColumnZero()
{

  HashMap<String, String> contextMap = new HashMap<String, String>();
  contextMap.put(ColumnFilteringInterceptor.Constants.DST_SEPARATOR, Byte.toString((byte)1));
  contextMap.put(ColumnFilteringInterceptor.Constants.SRC_SEPARATOR, Byte.toString((byte)2));
  contextMap.put(ColumnFilteringInterceptor.Constants.COLUMNS, "0");
  ColumnFilteringInterceptor.Builder builder = new ColumnFilteringInterceptor.Builder();
  builder.configure(new Context(contextMap));
  Interceptor interceptor = builder.build();
  assertArrayEquals("Empty Bytes",
      "\001".getBytes(),
      interceptor.intercept(new InterceptorTestHelper.MyEvent("".getBytes())).getBody());
  assertArrayEquals("One Field",
      "First\001".getBytes(),
      interceptor.intercept(new InterceptorTestHelper.MyEvent("First".getBytes())).getBody());
  assertArrayEquals("Two Fields",
      "\001".getBytes(),
      interceptor.intercept(new InterceptorTestHelper.MyEvent("\002First".getBytes())).getBody());
}