### Question:
ContextualMenu extends ViewGroup { public void addIcons(final ContextualMenuOption... icons) { for (final ContextualMenuOption icon : icons) { addView(icon); } radius = dp2px(getContext(), DEFAULT_RADIUS - (icons.length - 2) * 5); angleBetweenItems = angleBetweenItems - (icons.length - 2 * 10); } ContextualMenu(final Context context, @NonNull final ContextualMenuInfo contextualMenuInfo, final ContextualMenuListener listener); void showCenteredAt(final PointF position); void addIcons(final ContextualMenuOption... icons); void handleTouchEvent(final MotionEvent event); void switchState(final boolean showAnimation); ContextualMenuInfo getContextualMenuInfo(); void setContextualMenuInfo(final ContextualMenuInfo clickContext); ContextualMenuListener getContextualMenuClickListener(); void setContextualMenuClickListener(final ContextualMenuListener contextualMenuListener); PointF getCenter(); @Override String toString();  }### Answer:
@Test public void testAddOptionsToContextualMenu() { final int imageId = R.drawable.ic_image; final String tooltip = "Option 1"; final int hoveredColor = 0; final ContextualMenuOption option1 = new ContextualMenuOption(RuntimeEnvironment.application, imageId, tooltip, hoveredColor); final ContextualMenuOption option2 = new ContextualMenuOption(RuntimeEnvironment.application, imageId, tooltip, hoveredColor); final ContextualMenuOption option3 = new ContextualMenuOption(RuntimeEnvironment.application, imageId, tooltip, hoveredColor); contextualMenu.addIcons(option1, option2, option3); assertEquals(4, contextualMenu.getChildCount()); }