### Question:
LienzoImageStrips { public void register(final org.kie.workbench.common.stunner.core.client.shape.ImageStrip[] strips, final Command callback) { List<org.kie.workbench.common.stunner.core.client.shape.ImageStrip> candidates = new LinkedList<>(); for (org.kie.workbench.common.stunner.core.client.shape.ImageStrip strip : strips) { final String name = getName(strip); Integer count = registered.get(name); if (null == count) { count = 1; candidates.add(strip); } else { count++; } registered.put(name, count); } if (!candidates.isEmpty()) { imageStrips.register(candidates.stream() .map(LienzoImageStrips::convert) .toArray(com.ait.lienzo.client.core.image.ImageStrip[]::new), callback::execute); } else { callback.execute(); } } LienzoImageStrips();   LienzoImageStrips(final ImageStrips imageStrips); void register(final org.kie.workbench.common.stunner.core.client.shape.ImageStrip[] strips,
                         final Command callback); void remove(final org.kie.workbench.common.stunner.core.client.shape.ImageStrip[] strips); @PreDestroy void destroy();  }### Answer:
@Test public void testRegister() { Command callback = mock(Command.class); tested.register(STRIPS, callback); ArgumentCaptor<com.ait.lienzo.client.core.image.ImageStrip[]> stripsCaptor = ArgumentCaptor.forClass(com.ait.lienzo.client.core.image.ImageStrip[].class); verify(imageStrips, times(1)).register(stripsCaptor.capture(), any(Runnable.class)); com.ait.lienzo.client.core.image.ImageStrip[] strips = stripsCaptor.getValue(); assertStripsRegistered(strips); assertEquals(1, tested.getRegistered().size()); assertEquals(1, tested.getRegistered().values().iterator().next().intValue()); }