EndlessGridHandler implements GridHandler<T> { @Override public Grid<T> getCurrent() { return currentGrid; } EndlessGridHandler(int x, int y, CellFactory<T> cellFactory); @Override Grid<T> getCurrent(); @Override Grid<T> createNew(); @Override void setCurrent(Grid<T> grid);  }
@Test public void testGetCurrentAfterCreation() { assertThat(gridHandler.getCurrent()).isEqualTo(new EndlessGrid(3, 3, cellFactory)); }