public long position()
    {
        if (isClosed)
        {
            return finalPosition;
        }

        return subscriberPosition.get();
    }
@Test
    void shouldNotAdvancePastEndOfTerm()
    {
        final Image image = createImage();
        final long expectedPosition = TERM_BUFFER_LENGTH - 32;

        position.setOrdered(expectedPosition);
        assertThat(image.position(), is(expectedPosition));

        assertThrows(IllegalArgumentException.class, () -> image.position(TERM_BUFFER_LENGTH + 32));
    }