### Question:
AutobeanUtilities { public static IDatabaseType dbTypeBeanToImpl( IDatabaseType databaseTypeBean ) { DatabaseType databaseTypeImpl = new DatabaseType(); databaseTypeImpl.setDefaultDatabasePort( databaseTypeBean.getDefaultDatabasePort() ); databaseTypeImpl.setExtraOptionsHelpUrl( databaseTypeBean.getExtraOptionsHelpUrl() ); databaseTypeImpl.setName( databaseTypeBean.getName() ); databaseTypeImpl.setShortName( databaseTypeBean.getShortName() ); databaseTypeImpl.setSupportedAccessTypes( listBeanToImpl( databaseTypeBean.getSupportedAccessTypes() ) ); return databaseTypeImpl; }  static IDatabaseConnection connectionBeanToImpl( IDatabaseConnection connectionBean ); static IDatabaseType dbTypeBeanToImpl( IDatabaseType databaseTypeBean ); static Map<String, String> mapBeanToImpl( Map<String, String> map );  }### Answer:
@Test public void testDbTypeBeanToImpl() { List<DatabaseAccessType> accessTypes = new LinkedList<DatabaseAccessType>(); accessTypes.add( DatabaseAccessType.NATIVE ); DatabaseType dbType1 = new DatabaseType( "name", "short name", accessTypes, 100500, "helpUri" ); IDatabaseType dbType = AutobeanUtilities.dbTypeBeanToImpl( dbType1 ); assertEquals( dbType.getName(), "name" ); assertEquals( dbType.getShortName(), "short name" ); assertEquals( dbType.getDefaultDatabasePort(), 100500 ); assertEquals( dbType.getExtraOptionsHelpUrl(), "helpUri" ); assertEquals( dbType.getSupportedAccessTypes().size(), 1 ); }