@Test
public void get() throws Exception {

    when(trip.getDefaultCurrencyCode()).thenReturn("trip");
    when(price.getCurrencyCode()).thenReturn("distance");
    final DistanceCurrencyCodeSupplier nullDistanceSupplier = new DistanceCurrencyCodeSupplier(trip, null);
    final DistanceCurrencyCodeSupplier validDistanceSupplier = new DistanceCurrencyCodeSupplier(trip, distance);
    assertEquals(nullDistanceSupplier.get(), "trip");
    assertEquals(validDistanceSupplier.get(), "distance");
}