ArtifactMatcher { public static ClassifierMatcher classifier( Matcher<? extends String> classifier ) { return new ClassifierMatcher( classifier ); } private  ArtifactMatcher(); static ArtifactIdMatcher artifactId( Matcher<? extends String> artifactId ); static ArtifactIdMatcher artifactId( String artifactId ); static ClassifierMatcher classifier( Matcher<? extends String> classifier ); static ClassifierMatcher classifier( String classifier ); static GroupIdMatcher groupId( Matcher<? extends String> groupId ); static GroupIdMatcher groupId( String groupId ); static ScopeMatcher scope( Matcher<? extends String> scope ); static ScopeMatcher scope( String scope ); static TypeMatcher type( Matcher<? extends String> type ); static TypeMatcher type( String type ); static VersionMatcher version( Matcher<? extends String> versionMatcher ); static VersionMatcher version( String version );  }
@Test public void testClassifierString() { String value = "classifier"; when( artifact.getClassifier() ).thenReturn( value ); assertThat( artifact, classifier( value ) ); }