### Question:
EntityReferenceSet { public EntityReferenceSet includes(EntityReference reference) { if (this.includes == null) { this.includes = new EntityReferenceEntry(); } add(reference, this.includes); return this; }  EntityReferenceSet includes(EntityReference reference); EntityReferenceSet excludes(EntityReference reference); boolean matches(EntityReference reference);  }### Answer:
@Test public void includeLocalDocumentLocale() { includes(new LocalDocumentReference("space", "document", Locale.ROOT)); assertMatches(new LocalDocumentReference("space", "document")); assertMatches(new LocalDocumentReference("space", "document", Locale.ROOT)); assertNotMatches(new LocalDocumentReference("space", "document", Locale.FRENCH)); includes(new LocalDocumentReference("space", "document", Locale.ENGLISH)); assertMatches(new LocalDocumentReference("space", "document")); assertMatches(new LocalDocumentReference("space", "document", Locale.ROOT)); assertMatches(new LocalDocumentReference("space", "document", Locale.ENGLISH)); assertNotMatches(new LocalDocumentReference("space", "document", Locale.FRENCH)); }
@Test public void includeLocale() { includes(new DocumentReference("wiki", "space", "document", Locale.ENGLISH)); assertMatches(new DocumentReference("wiki", "space", "document")); assertMatches(new DocumentReference("wiki", "space", "document", Locale.ENGLISH)); assertNotMatches(new DocumentReference("wiki", "space", "document", Locale.FRENCH)); assertNotMatches(new DocumentReference("wiki", "space", "document", Locale.ROOT)); includes(new DocumentReference("wiki", "space", "document", Locale.FRENCH)); assertMatches(new DocumentReference("wiki", "space", "document")); assertMatches(new DocumentReference("wiki", "space", "document", Locale.ENGLISH)); assertMatches(new DocumentReference("wiki", "space", "document", Locale.FRENCH)); assertNotMatches(new DocumentReference("wiki", "space", "document", Locale.ROOT)); }