SimplePortfolio extends DirectBean implements Portfolio, MutableUniqueIdentifiable, Serializable { public void setName(String name) { JodaBeanUtils.notNull(name, "name"); this._name = name; } private  SimplePortfolio();  SimplePortfolio(String name);  SimplePortfolio(String name, SimplePortfolioNode rootNode);  SimplePortfolio(UniqueId uniqueId, String name);  SimplePortfolio(UniqueId uniqueId, String name, SimplePortfolioNode rootNode);  SimplePortfolio(Portfolio copyFrom); @Override void addAttribute(String key, String value); String toLongString(); @Override boolean equals(final Object obj); @Override int hashCode(); @Override String toString(); static SimplePortfolio.Meta meta(); @Override SimplePortfolio.Meta metaBean(); @Override UniqueId getUniqueId(); @Override void setUniqueId(UniqueId uniqueId); final Property<UniqueId> uniqueId(); @Override String getName(); void setName(String name); final Property<String> name(); @Override SimplePortfolioNode getRootNode(); void setRootNode(SimplePortfolioNode rootNode); final Property<SimplePortfolioNode> rootNode(); @Override Map<String, String> getAttributes(); @Override void setAttributes(Map<String, String> attributes); final Property<Map<String, String>> attributes(); @Override SimplePortfolio clone();  }
@Test(expectedExceptions=IllegalArgumentException.class) public void test_setName_null() { SimplePortfolio test = new SimplePortfolio(id("Scheme", "Id"), "Name"); test.setName(null); }