### Question:
ServiceConverter { public String parseFullServiceCode(String encodedId) { validateEncodedString(encodedId); List<String> parts = new ArrayList<>( Arrays.asList(encodedId.split( String.valueOf(ENCODED_ID_SEPARATOR)))); return parts.get(parts.size() - 1); } @Autowired  ServiceConverter(ClientConverter clientConverter, EndpointConverter endpointConverter,
            EndpointHelper endpointHelper); List<Service> convertServices(Iterable<ServiceType> serviceTypes, ClientId clientId); Service convert(ServiceType serviceType, ClientId clientId); String convertId(ServiceType serviceType, ClientId clientId); ClientId parseClientId(String encodedId); String parseFullServiceCode(String encodedId); static final int FULL_SERVICE_CODE_INDEX; }### Answer:
@Test(expected = BadRequestException.class) public void convertBadStringIdServiceCode() throws Exception { serviceConverter.parseFullServiceCode("XRD2:GOV:M4:SS1:aa:asd"); }
@Test(expected = BadRequestException.class) public void convertBadStringId2ServiceCode() throws Exception { serviceConverter.parseFullServiceCode("XRD2:GOV:M4:SS1"); }