private SAPConnection getConnection() {
   SAPConnection connection = ConnectionFactory.eINSTANCE.createSAPConnection();
   SAPBWTable dataSource = ConnectionFactory.eINSTANCE.createSAPBWTable();
   dataSource.setName("DATASOURCE");
   connection.getBWDataSources().add(dataSource);
   return connection;
 }
 @Test
 public void testGetBWTableList() {
   List<SAPBWTable> list =
       SAPBWTableHelper.getBWTableList(getConnection(), SAPBWTableHelper.TYPE_DATASOURCE);
   assertNotNull(list);
   SAPBWTable table = list.get(0);
   assertEquals("DATASOURCE", table.getName());
 }
 @Test
 public void testConvertMetadataTable() {
   SAPBWTable table = ConnectionFactory.eINSTANCE.createSAPBWTable();
   table.setSourceSystemName("TALEND");
   table.setInnerIOType(SAPBWTableHelper.IO_INNERTYPE_HIERARCHY);
   IMetadataTable newTable = ConvertionHelper.convert(table);
   String sourceSysName =
       newTable.getAdditionalProperties().get(SAPBWTableHelper.SAP_DATASOURCE_SOURCESYSNAME);
   String innerIOType =
       newTable.getAdditionalProperties().get(SAPBWTableHelper.SAP_INFOOBJECT_INNER_TYPE);
   assertEquals("TALEND", sourceSysName);
   assertEquals(SAPBWTableHelper.IO_INNERTYPE_HIERARCHY, innerIOType);
 }