### Question:
PersistentSearchControl extends Control { @Override public void toString(StringBuilder buffer) { buffer.append("PersistentSearchControl(changeTypes=\""); PersistentSearchChangeType.changeTypesToString(changeTypes, buffer); buffer.append("\",changesOnly="); buffer.append(changesOnly); buffer.append(",returnECs="); buffer.append(returnECs); buffer.append(")"); } PersistentSearchControl(Set<PersistentSearchChangeType> changeTypes,
                                 boolean changesOnly, boolean returnECs);  PersistentSearchControl(boolean isCritical,
                                 Set<PersistentSearchChangeType> changeTypes,
                                 boolean changesOnly, boolean returnECs); Set<PersistentSearchChangeType> getChangeTypes(); boolean getChangesOnly(); boolean getReturnECs(); @Override void toString(StringBuilder buffer); static final ControlDecoder<PersistentSearchControl> DECODER; }### Answer:
@Test(dataProvider = "persistentSearchChangeTypeData") public void checkIntValueTest(Map<Integer, String> expectedValues) throws Exception { for (Integer i : expectedValues.keySet()) { PersistentSearchChangeType val = PersistentSearchChangeType.valueOf(i); String expected = expectedValues.get(i); assertEquals(val.toString(), expected); } }