RemoteDockerNode implements DockerNode { @Override public void bindWorkspace() throws ServerException, EnvironmentException { backupManager.restoreWorkspaceBackup(workspaceId, containerId, nodeHost); isBound = true; } @Inject  RemoteDockerNode(
      DockerConnector dockerConnector,
      @Assisted("container") String containerId,
      @Assisted("workspace") String workspaceId,
      DockerEnvironmentBackupManager backupManager); @Override void bindWorkspace(); @Override void unbindWorkspace(); @Override String getHost(); @Override String getIp();  }
@Test public void shouldRestoreWorkspaceBackupOnNodeBinding() throws Exception { remoteDockerNode.bindWorkspace(); verify(backupManager) .restoreWorkspaceBackup(eq("WorkspaceId"), eq("ContainerId"), eq("127.0.0.1")); }