Bug bug2 = new Bug();
bug2.setExternalId(123L);
bug2.setTitle("+1 button is not showing on products with prime number IDs.");
bug2.addBugGroup("social");
bug2.addBugGroup("browsing");
bug2.setParentProjectId(projectId);
bug2.setPriority(1L);
bug2.setSeverity(2L);
bug2.setState("Open");
bug2.setTargetCapabilityId(capabilities.get(0).getCapabilityId());