EncryptEqualCondition implements EncryptCondition { public List<Object> getValues(final List<Object> parameters) { List<Object> result = new ArrayList<>(positionValueMap.values()); for (Entry<Integer, Integer> entry : positionIndexMap.entrySet()) { Object parameter = parameters.get(entry.getValue()); if (entry.getKey() < result.size()) { result.add(entry.getKey(), parameter); } else { result.add(parameter); } } return result; } EncryptEqualCondition(final String columnName, final String tableName, final int startIndex, final int stopIndex, final ExpressionSegment expressionSegment); List<Object> getValues(final List<Object> parameters);  }
@Test public void assertGetConditionValues() { List<Object> actual = new EncryptEqualCondition("col", null, 0, 0, new LiteralExpressionSegment(0, 0, 1)).getValues(Collections.emptyList()); assertThat(actual.size(), is(1)); assertThat(actual.get(0), is(1)); }