### Question:
PointDayPeriodValueFormatter extends AbstractPointValueFormatter { @Override public boolean handles(Class<?> valueClass) { Preconditions.checkNotNull(valueClass); return DayPeriod.class.equals(valueClass); }  @Override String format(Object value); @Override boolean handles(Class<?> valueClass); @Value("1") @Override void setOrder(int order);  }### Answer:
@Test(expected = NullPointerException.class) public void handles_Null() { formatter.handles(null); }
@Test public void handles() { assertFalse(formatter.handles(Object.class)); assertTrue(formatter.handles(DayPeriod.class)); }