DataModelFactory { public static Module createModule(final String name,final String version){ final Module module = new Module(); module.setName(name); module.setVersion(version); module.setPromoted(false); return module; } private  DataModelFactory(); static Organization createOrganization(final String name); static Module createModule(final String name,final String version); static Artifact createArtifact(final String groupId, final String artifactId, final String version, final String classifier, final String type, final String extension); static Artifact createArtifact(final String groupId, final String artifactId, final String version, final String classifier, final String type, final String extension, final String origin); static License createLicense(final String name, final String longName, final String comments, final String regexp, final String url); static Dependency createDependency(final Artifact artifact, final Scope scope); static Dependency createDependency(final Artifact artifact, final String scope); static PromotionDetails createPromotionDetails(final Boolean canBePromoted, final Boolean isSnapshot, final List<String> unPromotedDependencies, final List<Artifact> doNotUseArtifacts); static Delivery createDelivery(final String commercialName, final String commercialVersion, final String releaseDate, final List<String> dependencies); static ArtifactPromotionStatus createArtifactPromotionStatus(final Boolean promoted, final String message); static ArtifactQuery createArtifactQuery(final String user, final int stage , final String name, final String sha256, final String type, final String location); static Comment createComment(final String entityId,
										final String entityType,
										final String action,
										final String commentedText,
										final String user,
										final Date date);  }
@Test public void checkModuleGeneration(){ Module module = DataModelFactory.createModule("module", "1.0.0-SNAPSHOT"); assertNotNull(module); assertEquals("module", module.getName()); assertEquals("1.0.0-SNAPSHOT", module.getVersion()); assertFalse(module.isPromoted()); assertTrue(module.getArtifacts().isEmpty()); }