EODSystemProperties { protected Map<String,String> getLongShortTickers( Properties props ) { Map<String,String> map = new HashMap<>(); for( Object key : props.keySet()) { String keyString = (String) key; if( keyString.startsWith("pair") ) { String[] tickers = props.getProperty(keyString).split(":"); map.put(tickers[0], tickers[1]); } } return map; } protected  EODSystemProperties();  EODSystemProperties(String fileName);  EODSystemProperties(InputStream inputStream); LocalTime getStartTime(); String getTwsHost(); int getTwsPort(); int getTwsClientId(); int getTradeSizeDollars(); Map<String, String> getLongShortTickerMap(); LocalTime getMarketCloseTime(); String getStrategyDirectory(); TradeOrder.Type getEntryOrderType(); Type getExitOrderType(); int getExitSeconds(); LocalTime getExitTime(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }
@Test public void testGetLongShortTickers() { Map<String,String> expected = new HashMap<>(); expected.put("QQQ", "SPY"); expected.put("IWM", "DIA"); Properties props = new Properties(); props.setProperty("pair.1", "QQQ:SPY"); props.setProperty("foo", "bar"); props.setProperty("pair.2", "IWM:DIA"); assertEquals(expected, systemProps.getLongShortTickers(props)); }