Whitespace
diff --git a/src/test/java/org/apache/commons/compress/osgi/AbstractOsgiITest.java b/src/test/java/org/apache/commons/compress/osgi/AbstractOsgiITest.java
index 2072aa2..fd384f0 100644
--- a/src/test/java/org/apache/commons/compress/osgi/AbstractOsgiITest.java
+++ b/src/test/java/org/apache/commons/compress/osgi/AbstractOsgiITest.java
@@ -30,20 +30,21 @@
import org.osgi.framework.Bundle;
import org.osgi.framework.BundleContext;
-
-
/**
* Tests if the library can be loaded with an OSGi environment provided by {@link #config()}.
*/
abstract class AbstractOsgiITest {
+
private static final String EXPECTED_BUNDLE_NAME = "org.apache.commons.commons-compress";
@Inject
private BundleContext ctx;
/**
- * @return the OSGi configuration to use for the test
- * @implNote Concrete implementation needs the @Configuration annotation
+ * Gets the OSGi configuration to use for the test.
+ *
+ * @return the OSGi configuration to use for the test.
+ * @implNote Concrete implementation needs the @Configuration annotation.
*/
public abstract Option[] config();
@@ -65,10 +66,8 @@
public void testProperlyDetectsRunningInsideOsgiEnv() throws Exception {
final Class<?> osgiUtils = loadBundle().loadClass("org.apache.commons.compress.utils.OsgiUtils");
assertNotNull("Can load OsgiUtils via bundle", osgiUtils);
-
final Method method = osgiUtils.getMethod("isRunningInOsgiEnvironment");
assertNotNull("Can access isRunningInOsgiEnvironment method", method);
-
assertTrue("Compress detects OSGi environment", (Boolean) method.invoke(null));
}
}