@Test public void test() throws Exception { assertThat(MavenUserAgent.token(Logger.class, "org.slf4j", "slf4j-api").toString(), is("slf4j-api/1.7.25")); }
public static Token token(Class<?> aClass, String groupId, String artifactId) { return new Token(artifactId, MavenVersion.version(aClass, groupId, artifactId), Optional.empty()); }
MavenUserAgent { public static Token token(Class<?> aClass, String groupId, String artifactId) { return new Token(artifactId, MavenVersion.version(aClass, groupId, artifactId), Optional.empty()); } }
MavenUserAgent { public static Token token(Class<?> aClass, String groupId, String artifactId) { return new Token(artifactId, MavenVersion.version(aClass, groupId, artifactId), Optional.empty()); }  }
MavenUserAgent { public static Token token(Class<?> aClass, String groupId, String artifactId) { return new Token(artifactId, MavenVersion.version(aClass, groupId, artifactId), Optional.empty()); }  static Token token(Class<?> aClass, String groupId, String artifactId); }
MavenUserAgent { public static Token token(Class<?> aClass, String groupId, String artifactId) { return new Token(artifactId, MavenVersion.version(aClass, groupId, artifactId), Optional.empty()); }  static Token token(Class<?> aClass, String groupId, String artifactId);  }