@Test public void testBackgroundDrawable() { Drawable backgroundDrawable = mock(Drawable.class); int[] offset = new int[] {1, 2, 3, 4}; locationViewSettings.setBackgroundDrawable(backgroundDrawable, offset); assertEquals( "foreground should match", backgroundDrawable, locationViewSettings.getBackgroundDrawable()); assertTrue( "offsets should match", Arrays.equals(offset, locationViewSettings.getBackgroundOffset())); }