### Question:
LedgersSpiPaymentMapperHelper { static FrequencyCodeTO mapFrequencyCode(FrequencyCode frequencyCode) { if (FrequencyCode.MONTHLYVARIABLE == frequencyCode) { return FrequencyCodeTO.MONTHLY; } return Arrays.stream(FrequencyCodeTO.values()) .filter(f -> f.name().equals(frequencyCode.name())) .findFirst().orElse(null); } private  LedgersSpiPaymentMapperHelper();   }### Answer:
@Test void mapFrequencyCode() { assertEquals(FrequencyCodeTO.DAILY, LedgersSpiPaymentMapperHelper.mapFrequencyCode(FrequencyCode.DAILY)); assertEquals(FrequencyCodeTO.WEEKLY, LedgersSpiPaymentMapperHelper.mapFrequencyCode(FrequencyCode.WEEKLY)); assertEquals(FrequencyCodeTO.EVERYTWOWEEKS, LedgersSpiPaymentMapperHelper.mapFrequencyCode(FrequencyCode.EVERYTWOWEEKS)); assertEquals(FrequencyCodeTO.MONTHLY, LedgersSpiPaymentMapperHelper.mapFrequencyCode(FrequencyCode.MONTHLY)); assertEquals(FrequencyCodeTO.EVERYTWOMONTHS, LedgersSpiPaymentMapperHelper.mapFrequencyCode(FrequencyCode.EVERYTWOMONTHS)); assertEquals(FrequencyCodeTO.QUARTERLY, LedgersSpiPaymentMapperHelper.mapFrequencyCode(FrequencyCode.QUARTERLY)); assertEquals(FrequencyCodeTO.SEMIANNUAL, LedgersSpiPaymentMapperHelper.mapFrequencyCode(FrequencyCode.SEMIANNUAL)); assertEquals(FrequencyCodeTO.ANNUAL, LedgersSpiPaymentMapperHelper.mapFrequencyCode(FrequencyCode.ANNUAL)); assertEquals(FrequencyCodeTO.MONTHLY, LedgersSpiPaymentMapperHelper.mapFrequencyCode(FrequencyCode.MONTHLYVARIABLE)); }