### Question:
MicroDocument extends AbstractMicroNodeWithChildren implements IMicroDocument { public void setStandalone (@Nonnull final ETriState eStandalone) { ValueEnforcer.notNull (eStandalone, "Standalone"); m_eStandalone = eStandalone; } MicroDocument();  MicroDocument(@Nullable final IMicroDocumentType aDocType); @Nonnull EMicroNodeType getType(); String getNodeName(); @Nonnull ETriState getStandalone(); void setStandalone(@Nonnull final ETriState eStandalone); @Nullable IMicroDocumentType getDocType(); @Nullable IMicroElement getDocumentElement(); @Nonnull IMicroDocument getClone(); @Override boolean isEqualContent(@Nullable final IMicroNode o); @Override String toString(); static final ETriState DEFAULT_STANDALONE; }### Answer:
@Test public void testIsStandalone () { final IMicroDocument aDoc = new MicroDocument (); assertFalse (aDoc.isStandalone ()); final IMicroElement eRoot = aDoc.appendElement ("root"); assertFalse (aDoc.isStandalone ()); eRoot.setAttribute ("any", "Value"); assertFalse (aDoc.isStandalone ()); aDoc.setStandalone (true); assertTrue (aDoc.isStandalone ()); }