### Question:
PositionCalcUtil { public static PositionDTO newAvailablePosition(final NiFiServiceFacade serviceFacade) { final Set<ProcessGroupEntity> processGroups = serviceFacade.getProcessGroups(FlowController.ROOT_GROUP_ID_ALIAS); final List<PositionDTO> positions = processGroups.stream() .filter(e -> e.getComponent() != null && e.getComponent().getPosition() != null) .map(e -> e.getComponent().getPosition()) .collect(Collectors.toList()); return newAvailablePosition(positions); }  static PositionDTO newAvailablePosition(final NiFiServiceFacade serviceFacade); static PositionDTO newAvailablePosition(final List<PositionDTO> positions); static PositionDTO nextRight(PositionDTO base); static PositionDTO nextDown(PositionDTO base);  }### Answer:
@Test public void test_first() { final PositionDTO availablePosition = PositionCalcUtil.newAvailablePosition(Collections.emptyList()); Assert.assertEquals(0, availablePosition.getX().intValue()); Assert.assertEquals(0, availablePosition.getY().intValue()); }