given(jestClient.execute(any(Action.class))).willReturn(new JestResult());
searchService.saveToIndex(entry);
verify(jestClient).execute(argThat(new ArgumentMatcher<Action>() {
@Override
public boolean matches(Object item) {
Index action = (Index) item;
return action.getType().equals("someType");
}
}));
}