TotalSolarRadiation { public double toWattPerHourPerSquareMeter() { double value = getType().toWattPerSquareMeter(getValue(), 3600); return Math.floor(value * 100) / 100; } @JsonCreator  TotalSolarRadiation(
		@JsonProperty("value") double value,
		@JsonProperty("type") RadiationType type); double getValue(); RadiationType getType(); double toWattPerHourPerSquareMeter(); @Override boolean equals(Object o); @Override int hashCode();  }
@Test public void testToWattPerHourPerSquareMeter() { double joulePerCm2 = 70.8; TotalSolarRadiation solar = new TotalSolarRadiation(joulePerCm2, RadiationType.JOULE_PER_SQUARE_CENTIMETER); Assert.assertEquals(196.66, solar.toWattPerHourPerSquareMeter(), DELTA); }