@Test
public void testBazelDependencyGenerationWithoutArtifactField()
        throws ProviderImplementationException
{

    DependencySynonymFormatter formatter = compatibleDependencyFormatRegistry.getProviderImplementation(
            Maven2LayoutProvider.ALIAS, BazelDependencyFormatter.ALIAS);
    assertThat(formatter).as("Failed to look up dependency synonym formatter!").isNotNull();
    MavenArtifactCoordinates coordinates = new MavenArtifactCoordinates()
    {
        @Override
        public String getArtifactId()
        {
            return "maven-snippet";
        }
    };
    String snippet = formatter.getDependencySnippet(coordinates);
    System.out.print(snippet);
    assertThat("maven_jar(\n    name = \"maven-snippet\",\n)\n")
            .as("Failed to generate dependency!").isEqualTo(snippet);
}