GameOfLifeDrawer { void clearBackground() { rainbowDrawer.background(DEAD_COLOR, OPAQUE); } @VisibleForTesting  GameOfLifeDrawer(RainbowDrawer rainbowDrawer); static GameOfLifeDrawer newInstance(RainbowDrawer rainbowDrawer);  }
@Test public void testThatClearBackgroundDrawsBackgroundWithoutTransparency() { gameOfLifeDrawer.clearBackground(); verify(rainbowDrawer).background(DEAD_COLOR, OPAQUE); }