### Question:
SyntheticNodeDataDomainProvider extends DataDomainProvider { protected String createSyntheticDataNodeName(DataDomain domain) { return domain.getName() != null ? domain.getName() : ServerRuntimeBuilder.DEFAULT_NAME; }    }### Answer:
@Test public void testCreateSyntheticDataNodeName() { DataDomain ddMock = mock(DataDomain.class); SyntheticNodeDataDomainProvider p = new SyntheticNodeDataDomainProvider(); assertEquals("cayenne", p.createSyntheticDataNodeName(ddMock)); when(ddMock.getName()).thenReturn("n"); assertEquals("n", p.createSyntheticDataNodeName(ddMock)); }