### Question:
Resolution { public Resolution getScaled(double factorX, double factorY) { Check.superiorStrict(factorX, 0); Check.superiorStrict(factorY, 0); return new Resolution((int) (width * factorX), (int) (height * factorY), rate); } Resolution(int width, int height, int rate); Resolution get2x(); Resolution get3x(); Resolution get4x(); Resolution getScaled(double factorX, double factorY); int getWidth(); int getHeight(); int getRate(); @Override int hashCode(); @Override boolean equals(Object object); @Override String toString();  }### Answer:
@Test void testScaleWrongFactorX() { assertThrows(() -> new Resolution(320, 240, 60).getScaled(0, 1), Check.ERROR_ARGUMENT + 0.0 + Check.ERROR_SUPERIOR_STRICT + 0.0); }
@Test void testScaleWrongFactorY() { assertThrows(() -> new Resolution(320, 240, 60).getScaled(1, 0), Check.ERROR_ARGUMENT + 0.0 + Check.ERROR_SUPERIOR_STRICT + 0.0); }