### Question:
CurrencyParameterSensitivityValueFormatter implements ValueFormatter<CurrencyParameterSensitivity> { @Override public String formatForCsv(CurrencyParameterSensitivity sensitivity) { return getSensitivityString(sensitivity, doubleFormatter::formatForCsv, false); } private  CurrencyParameterSensitivityValueFormatter(); @Override String formatForCsv(CurrencyParameterSensitivity sensitivity); @Override String formatForDisplay(CurrencyParameterSensitivity sensitivity);  }### Answer:
@Test public void formatForCsv() { CurrencyParameterSensitivity sensitivity = CurrencyParameterSensitivity.of(CurveName.of("foo"), Currency.AED, DoubleArray.of(10, 20, 30)); String str = CurrencyParameterSensitivityValueFormatter.INSTANCE.formatForCsv(sensitivity); assertThat(str).isEqualTo("1 = 10 | 2 = 20 | 3 = 30"); }