### Question:
HeliosClient implements Closeable { public static Builder newBuilder() { return new Builder(); } HeliosClient(final String user, final RequestDispatcher dispatcher); @Override void close(); ListenableFuture<JobDeployResponse> deploy(final Deployment job, final String host); ListenableFuture<JobDeployResponse> deploy(final Deployment job, final String host,
                                                    final String token); ListenableFuture<SetGoalResponse> setGoal(final Deployment job, final String host); ListenableFuture<SetGoalResponse> setGoal(final Deployment job, final String host,
                                                   final String token); ListenableFuture<Deployment> deployment(final String host, final JobId job); ListenableFuture<HostStatus> hostStatus(final String host); ListenableFuture<HostStatus> hostStatus(
      final String host,
      final Map<String, String> queryParams); ListenableFuture<Map<String, HostStatus>> hostStatuses(final List<String> hosts); ListenableFuture<Map<String, HostStatus>> hostStatuses(
      final List<String> hosts,
      final Map<String, String> queryParams); ListenableFuture<Integer> registerHost(final String host, final String id); ListenableFuture<JobDeleteResponse> deleteJob(final JobId id); ListenableFuture<JobDeleteResponse> deleteJob(final JobId id, final String token); ListenableFuture<JobUndeployResponse> undeploy(final JobId jobId, final String host); ListenableFuture<JobUndeployResponse> undeploy(final JobId jobId, final String host,
                                                        final String token); ListenableFuture<HostDeregisterResponse> deregisterHost(final String host); ListenableFuture<List<String>> listHosts(); ListenableFuture<List<String>> listHosts(final String namePattern); ListenableFuture<List<String>> listHosts(final Set<String> unparsedHostSelectors); ListenableFuture<List<String>> listHosts(final String namePattern,
                                                  final Set<String> unparsedHostSelectors); ListenableFuture<List<String>> listMasters(); ListenableFuture<VersionResponse> version(); ListenableFuture<CreateJobResponse> createJob(final Job descriptor); ListenableFuture<Map<JobId, Job>> jobs(); ListenableFuture<Map<JobId, Job>> jobs(@Nullable final String jobQuery); ListenableFuture<Map<JobId, Job>> jobs(@Nullable final String jobQuery,
                                                @Nullable final String hostNamePattern); ListenableFuture<TaskStatusEvents> jobHistory(final JobId jobId); ListenableFuture<JobStatus> jobStatus(final JobId jobId); ListenableFuture<Map<JobId, JobStatus>> jobStatuses(final Set<JobId> jobs); ListenableFuture<DeploymentGroup> deploymentGroup(final String name); ListenableFuture<List<String>> listDeploymentGroups(); ListenableFuture<DeploymentGroupStatusResponse> deploymentGroupStatus(final String name); ListenableFuture<CreateDeploymentGroupResponse> createDeploymentGroup(
      final DeploymentGroup descriptor); ListenableFuture<RemoveDeploymentGroupResponse> removeDeploymentGroup(final String name); ListenableFuture<RollingUpdateResponse> rollingUpdate(
      final String deploymentGroupName, final JobId job, final RolloutOptions options); ListenableFuture<Integer> stopDeploymentGroup(final String deploymentGroupName); static Builder newBuilder(); static HeliosClient create(final String domain, final String user);  }### Answer:
@Test(expected = IllegalStateException.class) public void testBuildWithNoEndpoints() { HeliosClient.newBuilder() .setEndpoints(Collections.<URI>emptyList()) .build(); }