ObjectAssociationAbstract extends ObjectMemberAbstract implements ObjectAssociation { @Override public boolean isNotPersisted() { return containsFacet(NotPersistedFacet.class); } ObjectAssociationAbstract(
            final FacetedMethod facetedMethod,
            final FeatureType featureType,
            final ObjectSpecification specification); @Override FacetHolder getFacetHolder(); @Override ObjectSpecification getOnType(); @Override ObjectSpecification getSpecification(); @Override boolean isNotPersisted(); @Override boolean hasChoices(); @Override boolean isMandatory(); @Override abstract boolean isEmpty(final ManagedObject adapter, final InteractionInitiatedBy interactionInitiatedBy); @Override boolean isOneToOneAssociation();  }
@Test public void notPersistedWhenDerived() throws Exception { final NotPersistedFacet mockFacet = mockFacetIgnoring(NotPersistedFacet.class); facetedMethod.addFacet(mockFacet); assertTrue(objectAssociation.isNotPersisted()); }
@Test public void notPersistedWhenFlaggedAsNotPersisted() throws Exception { final NotPersistedFacet mockFacet = mockFacetIgnoring(NotPersistedFacet.class); facetedMethod.addFacet(mockFacet); assertTrue(objectAssociation.isNotPersisted()); }
@Test public void persisted() throws Exception { assertFalse(objectAssociation.isNotPersisted()); }