@Test
public void get() throws Exception {

    when(userPreferenceManager.get(UserPreference.General.DefaultCurrency)).thenReturn("prefs");
    when(trip.getDefaultCurrencyCode()).thenReturn("trip");
    final TripCurrencyCodeSupplier nullTripSupplier = new TripCurrencyCodeSupplier(userPreferenceManager, null);
    final TripCurrencyCodeSupplier validTripSupplier = new TripCurrencyCodeSupplier(userPreferenceManager, trip);
    assertEquals(nullTripSupplier.get(), "prefs");
    assertEquals(validTripSupplier.get(), "trip");
}