    @SuppressWarnings("unchecked")
    @Test
    public void configureEnvironment() {

        XvfbController ctrl = new DefaultXvfbController(EasyMock.createMock(ProcessMonitor.class), ":123",
                EasyMock.createMock(DisplayReadinessChecker.class),
                EasyMock.createMock(Screenshooter.class),
                EasyMock.createMock(Sleeper.class),
                EasyMock.createMock(XLockFileChecker.class));
        Map<String, String> env = ctrl.configureEnvironment(new HashMap<>());
        assertEquals(ImmutableMap.of(XvfbController.ENV_DISPLAY, ":123"), env);
    }