### Question:
WSDLParser { public String getUse(String operationName) throws UnknownOperationException { String result = parser.getSoapInputUse(null, operationName); if (result == null) { result = parser.getSoapOutputUse(null, operationName); } return result; } WSDLParser(String wsdlLocation); List<QName> getServices(); List<String> getPorts(QName serviceName); List<String> getOperations(String portName); List<String> getOperations(); boolean isWsrfService(); synchronized static void flushCache(String wsdlLocation); String getWSDLLocation(); String getOperationEndpointLocation(String portName); List<String> getOperationEndpointLocations(String operationName); @Deprecated String getStyle(); String getStyle(String operationName); List<TypeDescriptor> getOperationInputParameters(String operationName); List<TypeDescriptor> getOperationOutputParameters(
            String operationName); String getOperationNamespaceURI(String operationName); QName getOperationQname(String operationName); String getUse(String operationName); String getSOAPActionURI(String operationName); String getOperationDocumentation(String operationName); WSRF_Version isWSRFPort(String portName);  }### Answer:
@Test public void testGetUseEncoded() throws Exception { WSDLParser parser = new WSDLParser(wsdlResourcePath("bind.wsdl")); String use = parser.getUse("BIVGetRecords"); assertEquals("use should be encoded", "encoded", use); }
@Test public void testGetUseLiteral() throws Exception { WSDLParser parser = new WSDLParser(wsdlResourcePath("eutils/eutils_lite.wsdl")); String use = parser.getUse("run_eInfo"); assertEquals("use should be literal", "literal", use); }