Object option1 = new JRadioButton("Tarara");
Object option2 = new Integer(100);
Object option3 = "Eminem must tsum menimE";
Object option4 = new Button("Tarara");
Container buttonArea = new JPanel();
buttonArea.setLayout(new ButtonAreaLayout(true, 6));
paneUI.addButtonComponents(buttonArea, new Object[] { option1, option2, option3,
option4 }, 0);
assertEquals("number of buttons", 4, buttonArea.getComponentCount());
assertEquals("button class", JRadioButton.class, buttonArea.getComponent(0).getClass());
assertEquals("button text", "Tarara", ((JRadioButton) (buttonArea.getComponent(0)))