public Optional<Object> getLiteralValue(final int index) {
        ExpressionSegment valueExpression = valueExpressions.get(index);
        if (valueExpression instanceof ParameterMarkerExpressionSegment) {
            return Optional.ofNullable(parameters.get(getParameterIndex((ParameterMarkerExpressionSegment) valueExpression)));
        }
        if (valueExpression instanceof LiteralExpressionSegment) {
            return Optional.ofNullable(((LiteralExpressionSegment) valueExpression).getLiterals());
        }
        return Optional.empty();
    }
@Test
    void assertGetLiteralValueWhenParameterIsNull() {
        Collection<ExpressionSegment> assignments = makeParameterMarkerExpressionSegment();
        int parametersOffset = 0;
        InsertValueContext insertValueContext = new InsertValueContext(assignments, Collections.singletonList(null), parametersOffset);
        Optional<Object> literalValue = insertValueContext.getLiteralValue(0);
        assertThat(false, is(literalValue.isPresent()));
    }