### Question:
DragAndDropHelper { int position(final Element element) { return Integer.valueOf(element.getAttribute(DATA_POSITION)); } DragAndDropHelper(final HTMLElement dragArea,
                             final HTMLElement addButtonContainer);   }### Answer:
@Test public void testPosition() { final HTMLElement element = mock(HTMLElement.class); final int expected = 1; when(element.getAttribute(DATA_POSITION)).thenReturn(String.valueOf(expected)); final int actual = helper.position(element); assertEquals(expected, actual); }