@Test
void can_initialize_expression_filter_script() throws IOException {

  when(searchLookup.getLeafSearchLookup(leafReaderContext)).thenReturn(leafSearchLookup);
  FilterScript.LeafFactory leafFactory = factory.newFactory(params, searchLookup);
  FilterScript actualFilterScript = leafFactory.newInstance(leafReaderContext);
  assertEquals(
      new ExpressionFilterScript(expression, searchLookup, leafReaderContext, params),
      actualFilterScript
  );
}