### Question:
OSGiUtils { public static String getRooWorkingDirectory(final ComponentContext componentContext) { return componentContext.getBundleContext().getProperty(ROO_WORKING_DIRECTORY_PROPERTY); } private  OSGiUtils(); static void execute(final BundleCallback callback, final BundleContext context); static Collection<URL> findEntriesByPath(final BundleContext context, final String path); @SuppressWarnings("unchecked") static Collection<URL> findEntriesByPattern(final BundleContext context,
      final String antPathExpression); static String getRooWorkingDirectory(final ComponentContext componentContext); static boolean isDevelopmentMode(final ComponentContext componentContext); static final String ROO_WORKING_DIRECTORY_PROPERTY; static final String ROOT_PATH; static final String ROO_DEVELOPMENT_MODE_PROPERTY; }### Answer:
@Test public void testGetRooWorkingDirectory() { final BundleContext mockBundleContext = mock(BundleContext.class); when(mockBundleContext.getProperty(ROO_WORKING_DIRECTORY_PROPERTY)).thenReturn( ROO_WORKING_DIRECTORY); final ComponentContext mockComponentContext = mock(ComponentContext.class); when(mockComponentContext.getBundleContext()).thenReturn(mockBundleContext); final String rooWorkingDirectory = OSGiUtils.getRooWorkingDirectory(mockComponentContext); assertEquals(ROO_WORKING_DIRECTORY, rooWorkingDirectory); }