JsDatastoreParserObject { public String getUsername() { return mJsDatastore.attr("data-user-name"); } JsDatastoreParserObject(Document doc); String getUsername(); int getFilterId(); List<Integer> getHiddenTagIds(); List<Integer> getSpoileredTagIds(); @NonNull JSONArray getInteractions();  }
@Test public void testUsername() { assertThat(loggedIn.getUsername(), is("TestUserName = Test")); assertThat(loggedOut.getUsername(), is("")); }