@Test
 public void testForegroundDrawables() {
   Drawable foregroundDrawable = mock(Drawable.class);
   Drawable foregroundBearingDrawable = mock(Drawable.class);
   Drawable.ConstantState constantState = mock(Drawable.ConstantState.class);
   when(foregroundDrawable.getConstantState()).thenReturn(constantState);
   when(constantState.newDrawable()).thenReturn(foregroundDrawable);
   locationViewSettings.setForegroundDrawable(foregroundDrawable, foregroundBearingDrawable);
   assertEquals(
       "foreground should match",
       foregroundDrawable,
       locationViewSettings.getForegroundDrawable());
   assertEquals(
       "foreground bearing should match",
       foregroundBearingDrawable,
       locationViewSettings.getForegroundBearingDrawable());
 }