OnDuplicateUpdateContext { public ColumnSegment getColumn(final int index) { return columns.get(index); } OnDuplicateUpdateContext(final Collection<AssignmentSegment> assignments, final List<Object> parameters, final int parametersOffset); Object getValue(final int index); ColumnSegment getColumn(final int index);  }
@Test public void assertGetColumn() { Object literalObject = new Object(); Collection<AssignmentSegment> assignments = makeLiteralExpressionSegment(literalObject); List<Object> parameters = Collections.emptyList(); OnDuplicateUpdateContext onDuplicateUpdateContext = new OnDuplicateUpdateContext(assignments, parameters, 0); ColumnSegment column = onDuplicateUpdateContext.getColumn(0); assertThat(column, is(assignments.iterator().next().getColumn())); }