@Test
public void shouldParseReplicaSetName() {

    assertThat(MongoUtil.replicaSetUsedIn("rs0/")).isEqualTo("rs0");
    assertThat(MongoUtil.replicaSetUsedIn("rs0/localhost")).isEqualTo("rs0");
    assertThat(MongoUtil.replicaSetUsedIn("rs0/[::1/128]")).isEqualTo("rs0");
}