@Test
 public void testGetWaveDirection() {
   BuoyDetailViewModel viewModel =
       new BuoyDetailViewModel(WIND_CONDTIONS, WAVE_CONDITION, makeNauticalPreferences());
   viewModel.updateWaveDirection(mockCompass);
   verify(mockCompass).setWaveDirection(WAVE_CONDITION.getDirection());
 }
 public void testGetWindSpeed_Nautical() {
   BuoyDetailViewModel viewModel =
       new BuoyDetailViewModel(WIND_CONDTIONS, WAVE_CONDITION, makeNauticalPreferences());
   viewModel.updateWindSpeed(mockInstrument);
   assertThat(mockInstrument.value).isEqualTo("10.0");
   assertThat(mockInstrument.units).isEqualTo("kts");
 }
 @Test
 public void testGetWavePeriod() {
   BuoyDetailViewModel viewModel =
       new BuoyDetailViewModel(WIND_CONDTIONS, WAVE_CONDITION, makeNauticalPreferences());
   viewModel.updateWavePeriod(mockInstrument);
   assertThat(mockInstrument.value).isEqualTo("8.1");
   assertThat(mockInstrument.units).isEqualTo("s");
 }
 @Test
 public void testGetWindSpeed_Metric() {
   BuoyDetailViewModel viewModel =
       new BuoyDetailViewModel(WIND_CONDTIONS, WAVE_CONDITION, makeMetricPreferences());
   viewModel.updateWindSpeed(mockInstrument);
   assertThat(mockInstrument.value).isEqualTo("18.5");
   assertThat(mockInstrument.units).isEqualTo("kph");
 }
 @Test
 public void testGetWaveHeight_Imperial() {
   BuoyDetailViewModel viewModel =
       new BuoyDetailViewModel(WIND_CONDTIONS, WAVE_CONDITION, makeImperialPreferences());
   viewModel.updateWaveHeight(mockInstrument);
   assertThat(mockInstrument.value).isEqualTo("5.0");
   assertThat(mockInstrument.units).isEqualTo("ft");
 }
 @Test
 public void testGetWindDirection() {
   BuoyDetailViewModel viewModel =
       new BuoyDetailViewModel(WIND_CONDTIONS, WAVE_CONDITION, makeNauticalPreferences());
   viewModel.updateWindDirection(mockInstrument, mockCompass);
   verify(mockCompass).setWindDirection(WIND_DIRECTION);
   assertThat(mockInstrument.value).isEqualTo("90");
   assertThat(mockInstrument.units).isEqualTo("");
 }