### Question:
SnapshotActionGroup extends ActionGroup { SnapshotActionGroup(@NotNull List<Device> devices, @NotNull DeviceAndSnapshotComboBoxAction comboBoxAction, @NotNull Project project) { super(getText(devices), null, getIcon(devices)); setPopup(true); myDevices = devices; myComboBoxAction = comboBoxAction; myProject = project; } SnapshotActionGroup(@NotNull List<Device> devices, @NotNull DeviceAndSnapshotComboBoxAction comboBoxAction, @NotNull Project project); @NotNull @Override AnAction[] getChildren(@Nullable AnActionEvent event); @Override boolean equals(@Nullable Object object); @Override int hashCode();  }### Answer:
@Test public void snapshotActionGroup() { Device device1 = new VirtualDevice.Builder() .setName("Pixel 3 API 29") .setKey(new Key("Pixel_3_API_29/snap_2019-09-27_15-48-09")) .setAndroidDevice(Mockito.mock(AndroidDevice.class)) .build(); Device device2 = new VirtualDevice.Builder() .setName("Pixel 3 API 29") .setKey(new Key("Pixel_3_API_29/snap_2019-09-27_15-49-04")) .setAndroidDevice(Mockito.mock(AndroidDevice.class)) .build(); List<Device> devices = Arrays.asList(device1, device2); AnAction action = new SnapshotActionGroup(devices, myComboBoxAction, myProject); assertEquals("Pixel 3 API 29", action.getTemplatePresentation().getText()); }