session.answerSuccess(new IQ(XMLBuilder.fromXML(XEP_0055_2_1_SAMPLE_2)));
Mockito.verify(result, Mockito.never()).onFailure(Matchers.anyString());
Mockito.verify(result).onSuccess(Matchers.argThat(new ArgumentMatcher<SearchFields>() {
@Override
public boolean matches(final Object arg0) {
final SearchFields response = (SearchFields) arg0;
final List<String> fields = response.getFieldNames();
assertTrue(fields.contains("first"));
assertTrue(fields.contains("last"));
assertTrue(fields.contains("nick"));
assertTrue(fields.contains("email"));
assertFalse(fields.contains("instructions"));