public void readFully(final byte[] destination) throws EOFException
    {
        if (destination == null)
        {
            throw new NullPointerException("Destination must not be null");
        }

        readFully(destination, 0, destination.length);
    }
@Test
    void shouldThrowNPEIfDestinationIsNull() throws Throwable
    {
        final UnsafeBuffer buffer = toUnsafeBuffer((out) -> {});

        final DirectBufferDataInput dataInput = new DirectBufferDataInput(buffer);

        assertThrows(NullPointerException.class, () -> dataInput.readFully(null));
        assertThrows(NullPointerException.class, () -> dataInput.readFully(null, 0, 0));
    }