GameOfLifeDrawer { void paintBackground() { rainbowDrawer.background(DEAD_COLOR, ALPHA); } @VisibleForTesting  GameOfLifeDrawer(RainbowDrawer rainbowDrawer); static GameOfLifeDrawer newInstance(RainbowDrawer rainbowDrawer);  }
@Test public void testThatPaintBackgroundDrawsBackgroundWithTransparency() { gameOfLifeDrawer.paintBackground(); verify(rainbowDrawer).background(DEAD_COLOR, ALPHA); }