### Question:
ComparisonResult implements Comparable<ComparisonResult> { public boolean isSuccessful() { return penaltyPoints == null || penaltyPoints == 0L; } ComparisonResult();  ComparisonResult(Long penaltyPoints, Boolean additionalInfoInCurrentValue);  ComparisonResult(Long differencePenaltyPoints);  ComparisonResult(Boolean additionalInfoInCurrentValue); void addComparisonResult(ComparisonResult comparisonResult); Long getPenaltyPoints(); Boolean getAdditionalInfoInCurrentValue(); boolean isSuccessful(); int compareTo(ComparisonResult o); String toString(); static final ComparisonResult ZERO_PENALTY_POINTS; }### Answer:
@Test public void shouldGetComparisonResultSuccessful() { ComparisonResult comparisonResult = new ComparisonResult(0L); boolean isSuccessful = comparisonResult.isSuccessful(); assertTrue(isSuccessful); }
@Test public void shouldGetComparisonResultUnsuccessful() { ComparisonResult comparisonResult = new ComparisonResult(1L); boolean isSuccessful = comparisonResult.isSuccessful(); assertFalse(isSuccessful); }