Dependency implements Serializable { public LoadMode getLoadMode() { return loadMode; } Dependency(Type type, String url, LoadMode loadMode);  Dependency(Type type, String expression); String getUrl(); Type getType(); LoadMode getLoadMode(); JsonObject toJson(); @Override int hashCode(); @Override boolean equals(Object o); @Override String toString(); static final String KEY_URL; static final String KEY_TYPE; static final String KEY_LOAD_MODE; static final String KEY_CONTENTS; }
@Test public void dynamicDependency_hasLazyMode() { Dependency dependency = new Dependency(Dependency.Type.DYNAMIC_IMPORT, "foo"); assertThat(dependency.getLoadMode(), CoreMatchers.equalTo(LoadMode.LAZY)); }