### Question:
DirectionsRenderer extends JavascriptObject { public void clearDirections() { setMap(null); } DirectionsRenderer();  DirectionsRenderer(JSObject type);  DirectionsRenderer(boolean drag, GoogleMap map, DirectionsPane panel);  DirectionsRenderer(boolean drag, GoogleMap map, DirectionsPane panel, String strokeColor); void setMap(GoogleMap map); void clearDirections(); void setOptions(String options); void setPanel(DirectionsPane panel); int getRoutesCount(); void setRouteIndex(int index); @Override String toString();  }### Answer:
@Test public void testClearDirections() { doNothing().when(testRenderer).setMap(null); testRenderer.clearDirections(); verify(testRenderer).clearDirections(); }