@Test
 public void createDefaultEnvironmentReturnsNullValues() throws Exception {
   Environment env = Environment.createEnvironment();
   assertThat(env).isNotNull();
   assertThat(env.getApplicationName()).isNull();
   assertThat(env.getContextPath()).contains("null");
 }
  @Test
  public void createCustomEnvironment() {
    Environment environment =
        Environment.createEnvironment("http://localhost:8080", "http://localhost:8081");

    Assert.assertEquals("http://localhost:8080", environment.getBaseUrl());
    Assert.assertEquals("http://localhost:8081", environment.getXmlBaseUrl());
    Assert.assertEquals(Environment.CUSTOM.name(), environment.name());
  }
 @Test
 public void createDefaultEnvironmentServerHostIsNull() throws Exception {
   Environment env = Environment.createEnvironment();
   assertThat(env.getServerHost()).isNull();
 }
 @Test(expected = NumberFormatException.class)
 public void createDefaultEnvironmentServerPort() throws Exception {
   Environment env = Environment.createEnvironment();
   env.getServerPort();
 }