private Members members;
@Test
public void shouldAddMember() throws Exception {
Session session = mock(Session.class);
when(session.getId()).thenReturn("s1");
<BUG>members.register(new Member(session, null));
assertThat(members.findBy("s1").isPresent(), is(true));</BUG>
}
@Test
public void shouldWorkWhenMemberDoesntExists() throws Exception {

private Members members;
@Test
public void shouldAddMember() throws Exception {
Session session = mock(Session.class);
when(session.getId()).thenReturn("s1");
members.register(Member.create().session(session).ping(mock(ScheduledFuture.class)).build());
assertThat(members.findBy("s1").isPresent(), is(true));
}
@Test
public void shouldWorkWhenMemberDoesntExists() throws Exception {
