### Question:
JobTaskRequest implements TaskRequest { @Override public List<? extends ConstraintEvaluator> getHardConstraints() { return Collections.singletonList(AppConstraintEvaluator.getInstance()); }  @Override String getId(); @Override String taskGroupName(); @Override double getCPUs(); @Override double getMemory(); @Override double getNetworkMbps(); @Override double getDisk(); @Override int getPorts(); @Override Map<String, Double> getScalarRequests(); @Override List<? extends ConstraintEvaluator> getHardConstraints(); @Override List<? extends VMTaskFitnessCalculator> getSoftConstraints(); @Override void setAssignedResources(final AssignedResources assignedResources); @Override AssignedResources getAssignedResources(); @Override Map<String, NamedResourceSetRequest> getCustomNamedResources();  }### Answer:
@Test public void assertGetHardConstraints() { AppConstraintEvaluator.init(null); Assert.assertThat(jobTaskRequest.getHardConstraints().size(), Is.is(1)); }
@Test public void assertGetHardConstraints() { AppConstraintEvaluator.init(null); assertThat(jobTaskRequest.getHardConstraints().size(), is(1)); }