Roles implements Serializable { public String getName() { return name; } Roles(); int getId(); void setId(int id); String getLoginId(); void setLoginId(String loginId); String getScope(); void setScope(String scope); String getName(); void setName(String name); String getRole(); void setRole(String role);  }
@Test public void testRolesSettersAndGetters() { final Validator validator = ValidatorBuilder.create().with(new SetterTester()).with(new GetterTester()).build(); validator.validate(RolesTest.class.getPackage().getName(), new FilterPackageInfo()); }