### Question:
EndpointServiceImpl implements EndpointService { protected List<Map.Entry<String, String>> convertServiceSpecificHeaders(String[] specificServiceHeaders) { if (specificServiceHeaders == null) { return Collections.emptyList(); } else { return Arrays.asList(specificServiceHeaders).stream() .map(s -> ParameterUtil.toMapEntry(s, ":")) .filter(e -> e != null).collect(Collectors.toList()); } }  @Override String getId(); @Override String getMethod(); @Override String getUrl(); @Override String[] getConfigServiceSpecificHeaders(); @Override JsonObject performIO_Action(); @Override JsonObject performIO_Action(String url, String method, String[] headers, JsonObject payload); @Override JsonObject performIO_Action(@NotNull Map<String, String> queryParameters); @Override JsonObject performIO_Action(@NotNull JsonObject payload); @Override boolean isConnected();  }### Answer:
@Test public void testConvertServiceSpecificHeadersWithNull() { List<Map.Entry<String, String>> headers = endpointService.convertServiceSpecificHeaders(null); assertEquals(Collections.EMPTY_LIST, headers); }
@Test public void testConvertServiceSpecificHeadersWitNothNull() { String[] arr = {"name1:value","name2:value"}; List<Map.Entry<String, String>> headers = endpointService.convertServiceSpecificHeaders(arr); assertEquals(2, headers.size()); }