UkelonndbAsAuthservicedb extends DataSourceProxy { @Activate void activate() { }  @Override @Reference(target = "(osgi.jndi.service.name=jdbc/ukelonn)") void setWrappedDataSource(DataSource wrappedDataSource);  }
@Test public void testActivate() throws Exception { DataSource ukelonndb = mock(DataSource.class); Connection connection = mock(Connection.class); when(ukelonndb.getConnection()).thenReturn(connection); UkelonndbAsAuthservicedb proxy = new UkelonndbAsAuthservicedb(); proxy.setWrappedDataSource(ukelonndb); proxy.activate(); assertEquals(connection, proxy.getConnection()); }