### Question:
PropsLoader { public Properties loadMongoProperties() { Properties prop = new Properties(); try { prop.load(getClass().getClassLoader().getResourceAsStream( "mongo-tail.properties")); } catch (Exception e) { e.printStackTrace(); } return prop; }  Properties loadMongoProperties();  }### Answer:
@Test public void testLoadProps() throws IOException { PropsLoader pl = new PropsLoader(); Properties mongoProps = pl.loadMongoProperties(); assertEquals("localhost:27017", mongoProps.get("mongosHostInfo")); }