@Test(expected=AssertionError.class)
  public void testInitInvalidFilterContext(){
    MutableFilterContext mutableFilterContext = new VectorizedRowBatch(0);
    int[] selected = makeInvalidSelected();

    mutableFilterContext.setFilterContext(true, selected, selected.length);
  }
Test creation and manipulation of MutableFilterContext and FilterContext.
ql/src/test/org/apache/hadoop/hive/ql/io/filter/TestFilterContext.java