JniLibrary { public String getResourceName() { return String.format("%s/%s", getPlatformDirName(), getLibraryFileName()); } private  JniLibrary(String name, Platform platform, String version); static Builder builder(); Platform getPlatform(); String getPlatformDirName(); String getLibraryFileName(); String getResourceName(); String getName(); String getVersion();  }
@Test void testGetResourceName() { String expectedResourceName = String.format("%s/%s", jniLibrary.getPlatformDirName(), jniLibrary.getLibraryFileName()); assertEquals(expectedResourceName, jniLibrary.getResourceName()); }