### Question:
PropertiesBasedDatastore implements GatewayDatastore { int getLoadFailures() { return failures; } PropertiesBasedDatastore(final Resource properties);  PropertiesBasedDatastore(final Resource properties, int delay); @Override void addCallToMixer(String callId, String mixerName); @Override void addVerbToMixer(GatewayVerb verb, String mixerName); @Override void createFilter(String jid, String id); @Override List<String> getAddressesForApplication(String jid); @Override Application getApplication(String jid); @Override Application getApplicationForAddress(String address); @Override List<Application> getApplications(); @Override GatewayCall getCall(String callId); @Override Collection<String> getCalls(); @Override Collection<String> getCallsForClient(String jid); @Override Collection<String> getCallsForNode(String rayoNode); @Override GatewayClient getClient(String clientJid); @Override List<String> getClientResources(String clientJid); @Override List<String> getClients(); @Override List<String> getFilteredApplications(String id); @Override GatewayMixer getMixer(String mixerName); @Override Collection<GatewayMixer> getMixers(); @Override RayoNode getNode(String rayoNode); @Override String getNodeForCall(String callId); @Override String getNodeForIpAddress(String ipAddress); @Override Collection<String> getPlatforms(); @Override List<RayoNode> getRayoNodesForPlatform(String platformId); @Override GatewayVerb getVerb(String mixerName, String verbId); @Override List<GatewayVerb> getVerbs(); int hashCode(); RayoNode storeNode(RayoNode node); RayoNode updateNode(RayoNode node); boolean equals(Object obj); RayoNode removeNode(String id); GatewayCall storeCall(GatewayCall call); GatewayCall removeCall(String id); Collection<String> getCalls(String jid); GatewayClient storeClient(GatewayClient client); GatewayClient removeClient(String jid); String toString(); Application storeApplication(Application application); Application updateApplication(Application application); Application removeApplication(String jid); Application removeApplication(String jid, boolean save); void storeAddress(String address, String jid); void storeAddress(String address, String jid, boolean save); void storeAddresses(Collection<String> addresses, String jid); void storeAddresses(Collection<String> addresses, String jid, boolean save); void removeAddress(String address); void removeAddress(String address, boolean save); GatewayMixer removeMixer(String mixerName); GatewayMixer storeMixer(GatewayMixer mixer); void removeCallFromMixer(String callId, String mixerName); void removeVerbFromMixer(String verbId, String mixerName); List<GatewayVerb> getVerbs(String mixerName); void removeFilter(String jid, String id); void removeFilters(String id); String lookup(URI uri);  }### Answer:
@Test public void testLoadFromProperties() throws Exception { clearCurrentTempFile(); store = new PropertiesBasedDatastore(getRayoPropertiesResource()); assertEquals(((PropertiesBasedDatastore)store).getLoadFailures(), 0); }