### Question:
StoreFactory { public static CategoryStore getCategoryStore() { CategoryStoreMongo cs = null; try { Properties properties = loadDataProperties(); String host = properties.getProperty(DATA_HOST); String value = properties.getProperty(DATA_PORT); int port = Integer.parseInt(value); String database = properties.getProperty(DATA_DATABASE); String collection = properties.getProperty(DATA_COLLECTION_CATEGORIES); cs = new CategoryStoreMongo(host, port, database, collection); cs.initialize(); } catch (NumberFormatException e) { } catch (IOException e) { } return cs; }  static CategoryStore getCategoryStore(); static AssetStore getAssetStore(); static UserStore getUserStore(); static PhotoStore getPhotoStore();  }### Answer:
@Test public void testGetCategoryStore() { CategoryStore cs = StoreFactory.getCategoryStore(); assertTrue(cs != null); CategoryStoreMongo csm = (CategoryStoreMongo)cs; assertTrue(HOST.equals(csm.getHost())); assertTrue(PORT == csm.getPort()); assertTrue(DATABASE.equals(csm.getDatabase())); assertTrue(COLLECTION_CATEGORIES.equals(csm.getName())); }