### Question:
FactoryRepository { public static Repository getInstance() { String type = BehaveConfig.getProperty("behave.regression.type"); if (type == null || type.length() == 0){ throw new BehaveException(message.getString("exception-properties-not-found", "behave.regression.type")); } if (type.equalsIgnoreCase("local")){ return new LocalRepository(); } if (type.equalsIgnoreCase("ftp")){ return new FTPRepository(); } throw new BehaveException(message.getString("exception-properties-invalid", type)); }  static Repository getInstance(); static String MESSAGEBUNDLE; }### Answer:
@Test public void testGetInstance() { assertTrue(repo instanceof LocalRepository); }