assertSame(item, roster.getItemByJID(uri("romeo@example.net/RESOURCE")));
}
@Test
public void shouldFireEventOnlyWhenRosterReady() {
final RosterRetrievedTestHandler handler = new RosterRetrievedTestHandler();
roster.addRosterRetrievedHandler(handler);
shouldRequestRosterOnLogin();
session.answerFailure(new IQ(Type.error));
assertTrue(handler.isNotCalled());
}