FipScope { public static @Nonnull String getDescription(@Nonnull String instanceFingerprint, @Nonnull Server server) { return "{ '" + Openstack.FINGERPRINT_KEY + "': '" + instanceFingerprint + "', 'jenkins-scope': 'server:" + server.getId() + "' }"; }  static @Nonnull String getDescription(@Nonnull String instanceFingerprint, @Nonnull Server server); static @CheckForNull String getServerId(@Nonnull String instanceFingerprint, @CheckForNull String description);  }
@Test public void getDescription() { assertEquals(REALISTIC_EXAMPLE, FipScope.getDescription(FNGRPRNT, server("d8eca2df-7795-4069-b2ef-1e2412491345"))); assertThat("Possible length is larger than maximal size of FIP description", REALISTIC_EXAMPLE.length(), lessThanOrEqualTo(250)); }