@Test
public void matchesTestFromString() {

    String purlString = "pkg:maven/test.groupId/artifactId@1.0.0";
    String purlWildcardString = "pkg:maven/test.*/artifactId@1.0.0";
    Coordinate coordinate = new Coordinate(purlString);
    Coordinate coordinateWildcard = new Coordinate(purlWildcardString);
    assertThat(coordinateWildcard.matches(coordinate))
            .isTrue();
    assertThat(coordinate.matches(coordinateWildcard))
            .isFalse();
}