@Test
public void shouldCreateEmptyEnvironmentIfCredentialsNotPresent() throws Exception {

    final JmxParameters jmxParameters = jmxParameters()
            .withHost("host")
            .withPort(928134)
            .build();
    assertThat(jmxParameters.getCredentials().isPresent(), is(false));
    final Map<String, Object> environment = environmentFactory.create(jmxParameters);
    assertThat(environment.isEmpty(), is(true));
}