### Question:
SBTDependencyFormatter implements DependencySynonymFormatter { @Override public String getDependencySnippet(ArtifactCoordinates artifactCoordinates) { MavenArtifactCoordinates coordinates = (MavenArtifactCoordinates) artifactCoordinates; return "libraryDependencies += \"" + coordinates.getGroupId() + "\" % \"" + coordinates.getArtifactId() + "\" % \"" + coordinates.getVersion() + "\"" + (coordinates.getClassifier() != null ? " classifier \"" + coordinates.getClassifier() + "\"" : "") + "\n"; }  @PostConstruct @Override void register(); @Override String getLayout(); @Override String getFormatAlias(); @Override String getDependencySnippet(ArtifactCoordinates artifactCoordinates); static final String ALIAS; }### Answer:
@Test public void testSBTDependencyGeneration() throws ProviderImplementationException { DependencySynonymFormatter formatter = compatibleDependencyFormatRegistry.getProviderImplementation(Maven2LayoutProvider.ALIAS, SBTDependencyFormatter.ALIAS); assertThat(formatter).as("Failed to look up dependency synonym formatter!").isNotNull(); MavenArtifactCoordinates coordinates = new MavenArtifactCoordinates(); coordinates.setGroupId("org.carlspring.strongbox"); coordinates.setArtifactId("maven-snippet"); coordinates.setVersion("1.0"); coordinates.setExtension("jar"); String snippet = formatter.getDependencySnippet(coordinates); System.out.println(snippet); assertThat(snippet) .as("Failed to generate dependency!") .isEqualTo("libraryDependencies += \"" + coordinates.getGroupId() + "\" % \"" + coordinates.getArtifactId() + "\" % \"" + coordinates.getVersion() + "\"\n"); }