### Question:
LoadableDetachableDependentModel extends LoadableDetachableModel<T> { public IModel<D> getDependentModel() { return dependentModel; } LoadableDetachableDependentModel(IModel<D> dependentModel); IModel<D> getDependentModel();  }### Answer:
@Test public void testDependentModelIsSameAndDetached() { LoadableDetachableModel<String> dependentModel = new LoadableDetachableModel<String>() { private static final long serialVersionUID = 1L; @Override protected String load() { return "test"; } }; LoadableDetachableDependentModel<String, String> model = new LoadableDetachableDependentModel<String, String>( dependentModel) { private static final long serialVersionUID = 1L; @Override protected String load() { return "test"; } }; assertSame(dependentModel, model.getDependentModel()); tester.startComponentInPage(new Label(CID_LABEL, model), Markup.of(MARKUP)); assertFalse(dependentModel.isAttached()); }