### Question:
WorkflowAction { protected String convertTypeFromPlural(String type) { if (!type.matches(SUPPORTEDTYPES)) { return type; } else { if (type.equals(SERVICE_INSTANCES)) { return SERVICE; } else { return type.substring(0, 1).toUpperCase() + type.substring(1, type.length() - 1); } } }  void setBbInputSetupUtils(BBInputSetupUtils bbInputSetupUtils); void setBbInputSetup(BBInputSetup bbInputSetup); void selectExecutionList(DelegateExecution execution); void handleRuntimeException(DelegateExecution execution);  }### Answer:
@Test public void pluralTest() { List<String> items = Arrays.asList("serviceInstances, Service", "vnfs, Vnf", "vfModules, VfModule", "networks, Network", "invalidNames, invalidNames"); items.forEach(item -> { String[] split = item.split(","); String type = split[0].trim(); String expected = split[1].trim(); assertThat(workflowAction.convertTypeFromPlural(type), equalTo(expected)); }); }