### Question:
DataReader { public List<String> getKeys() { CodeGeneratorLoggerFactory.getLogger().debug(String.format("Reading keys from data file [%s]", fileName)); List<String> keys = reader.getAllKeys(); checkForDuplicateKeys(keys); return keys; } DataReader(String fileName); String getBaseClassName(); TestPlatform platform(); List<String> getKeys();  }### Answer:
@Test public void getKeysV1() throws Exception { DataReader r = new DataReader("src/test/resources/PayPalAbstractPage.yml"); List<String> keys = r.getKeys(); assertTrue(keys.contains("messageBoxConfirmationLabel")); }
@Test public void getKeysV2() throws Exception { DataReader r = new DataReader(YAML_V2); List<String> keys = r.getKeys(); assertTrue(keys.contains("requestAPICredentialsLink")); }
@Test public void getKeysMobile() throws Exception { DataReader r = new DataReader(YAML_MOBILE); List<String> keys = r.getKeys(); assertTrue(keys.contains("sampleTextField")); }
@Test public void getHtmlObjectDetails() throws Exception { DataReader r = new DataReader(YAML_V2); List<String> keys = r.getKeys(); List<GUIObjectDetails> objects = GUIObjectDetails.transformKeys(keys); GUIObjectDetails requestAPICredentialsLink = null; for (GUIObjectDetails eachObject : objects) { if (eachObject.getMemberName().equals("requestAPICredentialsLink")) { requestAPICredentialsLink = eachObject; break; } } assertEquals(requestAPICredentialsLink != null ? requestAPICredentialsLink.getMemberType() : null, HtmlSeLionElement.LINK.getElementClass()); }