@Test
public void fetchingJmxCredentialsIsntPresentWhenNotDefinedAnywhere() {

  Cluster cluster = Cluster.builder().withName("FooCluster")
          .withSeedHosts(ImmutableSet.of("127.0.0.1")).build();
  JmxConnectionFactory connectionFactory = new JmxConnectionFactory(mock(AppContext.class), mock(Cryptograph.class));
  Optional<JmxCredentials> jmxCredentials = connectionFactory.getJmxCredentialsForCluster(Optional.of(cluster));
  assertFalse(jmxCredentials.isPresent());
}