### Question:
PriceCategory { public int getFrequentRenterPoints(int daysRented) { return daysRented > 0 ? 1 : 0; }  int getId(); abstract double getCharge(int daysRented); int getFrequentRenterPoints(int daysRented);  }### Answer:
@Test public void testGetFrequentRenterPoints() { assertEquals(0, pc.getFrequentRenterPoints(-6)); assertEquals(0, pc.getFrequentRenterPoints(0)); assertEquals(1, pc.getFrequentRenterPoints(1)); assertEquals(1, pc.getFrequentRenterPoints(2)); assertEquals(1, pc.getFrequentRenterPoints(4000)); }