@Test
public void getEnvironment() throws Exception {

    String url = "My awesome Horizon server";
    Environment environment = new Environment(url, Environment.TEST.getNetworkPassphrase());
    kinClient = new KinClient(environment, fakeKeyStore, mockTransactionSender,
            mockAccountInfoRetriever, mockGeneralBlockchainInfoRetriever, mockBlockchainEventsCreator,
            new FakeBackupRestore(), APP_ID, "");
    Environment actualEnvironment = kinClient.getEnvironment();
    assertNotNull(actualEnvironment);
    assertFalse(actualEnvironment.isMainNet());
    assertEquals(url, actualEnvironment.getNetworkUrl());
    assertEquals(Environment.TEST.getNetworkPassphrase(), actualEnvironment.getNetworkPassphrase());
}