### Question:
WikiDataSystem extends SimpleSystemImpl { @Override public SimpleNode moveTo(String entityId, String... keys) { if (wbdf == null) throw new IllegalStateException("not connected"); EntityDocument entityDocument; try { entityDocument = wbdf.getEntityDocument(entityId); } catch (MediaWikiApiErrorException e) { throw new RuntimeException(e); } if (entityDocument == null) throw new IllegalArgumentException( "Entity Document for " + entityId + " not found"); WikiDataNode node = new WikiDataNode(this, entityDocument, keys); if (this.getStartNode() == null) this.setStartNode(node); return node; } WikiDataSystem();  WikiDataSystem(String... languageCodes); private  WikiDataSystem(WikibaseDataFetcher wbdf, String... languageCodes); @Override SimpleNode moveTo(String entityId, String... keys); @Override SimpleSystem connect(String... connectionParams); void addLanguage(String languageCode); List<String> getLanguages(); Cache useCache(File cacheFile, String purpose); SimpleNode cache(EntityIdValue entityId, boolean optional); static Optional<EntityIdValue> createEntityIdValue(String id); Optional<SimpleNode> cache(String id, boolean optional); @Override Class<? extends SimpleNode> getNodeClass(); static final String PURPOSE_PROPERTY; static final String PURPOSE_ITEM; static String siteiri; }### Answer:
@Test public void testMoveWithoutConnect() { WikiDataSystem lwikiDataSystem = new WikiDataSystem(); Exception foundException = null; try { lwikiDataSystem.moveTo("Q44"); } catch (Exception e) { foundException = e; } assertNotNull(foundException); assertTrue(foundException instanceof java.lang.IllegalStateException); assertEquals("not connected", foundException.getMessage()); }