DefaultLibraryAliquotAliasGenerator implements NameGenerator<LibraryAliquot> { @Override public String generate(LibraryAliquot object) throws MisoNamingException, IOException { return object.getLibrary().getAlias(); }  @Override String generate(LibraryAliquot object);  }
@Test public void testGenerate() throws MisoNamingException, IOException { String alias = "TEST_ALIAS_123"; Library lib = new LibraryImpl(); lib.setAlias(alias); LibraryAliquot aliquot = new LibraryAliquot(); aliquot.setLibrary(lib); assertEquals(alias, sut.generate(aliquot)); }