### Question:
AngleUnitsProvider extends AbstractUnitsProvider<Coordinates> { @Override public <T extends Coordinates> T fromUnitsAndMagnitude(Class<T> type, Number magnitude) throws InvalidUnitsException { return Coordinates.create(type, magnitude.doubleValue()); } AngleUnitsProvider(); @Override T convert(Class<T> desiredType, Coordinates source); @Override T fromUnitsAndMagnitude(Class<T> type, Number magnitude); @Override Class<? extends Coordinates> getDisplayClass(Coordinates value); @Override String getLongLabel(Class<? extends Coordinates> type, boolean plural); @Override String getSelectionLabel(Class<? extends Coordinates> type); @Override String getShortLabel(Class<? extends Coordinates> type, boolean plural); @Override Class<Coordinates> getSuperType(); @Override Class<? extends Coordinates> getUnitsWithLongLabel(String label); @Override String toShortLabelString(Coordinates obj);  }### Answer:
@Test public void testFromTypeAndMagnitude() { Assert.assertEquals(new DecimalDegrees(1.), new AngleUnitsProvider().fromUnitsAndMagnitude(DecimalDegrees.class, Double.valueOf(1.))); }