    @Test
    public void create_remote_connection_and_return_it() throws Exception {

        Connection properties = new Connection("localhost", 12345);
        doReturn(remoteInjector).when(connectionService).createRemoteInjector(any());
        connectionService.createConnection(properties);
        InjectorService currentConnection = injectorHandler.getInjectorService();
        Assert.assertNotNull(currentConnection);
        Assert.assertTrue(currentConnection instanceof RemoteInjector);
    }