### Question:
DevicePrintComparator { public ComparisonResult compareScreenResolution(String currentWidth, String currentHeight, String storedWidth, String storedHeight, long penaltyPoints) { ComparisonResult widthComparisonResult = compare(currentWidth, storedWidth, penaltyPoints); ComparisonResult heightComparisonResult = compare(currentHeight, storedHeight, penaltyPoints); if (widthComparisonResult.isSuccessful() && heightComparisonResult.isSuccessful()) { return new ComparisonResult(widthComparisonResult.getAdditionalInfoInCurrentValue() || heightComparisonResult.getAdditionalInfoInCurrentValue()); } else { return new ComparisonResult(penaltyPoints); } } DevicePrintComparator(MultiValueAttributeComparator multiValueAttributeComparator,
            ColocationComparator colocationComparator); ComparisonResult compare(DevicePrint currentDevicePrint, DevicePrint storedDevicePrint,
            DevicePrintAuthenticationConfig config); ComparisonResult compare(String currentValue, String storedValue, long penaltyPoints); ComparisonResult compareUserAgent(String currentValue, String storedValue, long penaltyPoints,
            boolean ignoreVersion); ComparisonResult compare(String currentValue, String storedValue, int maxDifferences,
            int maxDifferencesPercentage, long penaltyPoints); ComparisonResult compare(Double currentLatitude, Double currentLongitude, Double storedLatitude,
            Double storedLongitude, long maxToleratedDistance, long penaltyPoints); ComparisonResult compareScreenResolution(String currentWidth, String currentHeight, String storedWidth,
            String storedHeight, long penaltyPoints);  }### Answer:
@Test public void shouldCompareScreenResolutionWhenNotTheSame() { ComparisonResult comparisonResult = devicePrintComparator.compareScreenResolution("CURRENT_WIDTH", "CURRENT_HEIGHT", "STORED_WIDTH", "STORED_HEIGHT", 10L); assertEquals((long) comparisonResult.getPenaltyPoints(), 10L); assertFalse(comparisonResult.getAdditionalInfoInCurrentValue()); }