### Question:
HiveClientWrapper { public Metadata.Item extractTableFromName(String qualifiedName) { List<Metadata.Item> items = extractTablesFromPattern(null, qualifiedName); if (items.isEmpty()) { throw new IllegalArgumentException("No tables found"); } return items.get(0); } private  HiveClientWrapper();   HiveClientWrapper(HiveClientFactory hiveClientFactory); static HiveClientWrapper getInstance(); IMetaStoreClient initHiveClient(RequestContext context, Configuration configuration); Table getHiveTable(IMetaStoreClient client, Metadata.Item itemName); void getSchema(Table tbl, Metadata metadata); byte[] makeUserData(String fragmenterClassName,
                               HiveTablePartition partData,
                               boolean filterInFragmenter,
                               List<Integer> hiveIndexes,
                               String allColumnNames,
                               String allColumnTypes); Metadata.Item extractTableFromName(String qualifiedName); boolean hasComplexTypes(Metadata metadata); List<Metadata.Item> extractTablesFromPattern(IMetaStoreClient client, String pattern); Integer getDelimiterCode(StorageDescriptor sd);  }### Answer:
@Test public void parseTableQualifiedNameNoDbName() { String name = "orphan"; tblDesc = hiveClientWrapper.extractTableFromName(name); assertEquals("default", tblDesc.getPath()); assertEquals(name, tblDesc.getName()); }
@Test public void parseTableQualifiedName() { String name = "not.orphan"; tblDesc = hiveClientWrapper.extractTableFromName(name); assertEquals("not", tblDesc.getPath()); assertEquals("orphan", tblDesc.getName()); }