ExtensionRegistry { static boolean isStringSetter(Method m) { Class<?>[] parameters = m.getParameterTypes(); Class<?> returnType = m.getReturnType(); String name = m.getName(); return name.startsWith(SETTER_PREFIX) && parameters.length == 1 && String.class.equals(parameters[0]) && returnType.equals(void.class); } private  ExtensionRegistry(); static void loadRegistry(URL configurationFileURL,
			boolean ignoreOnNotFound); static IBPELDeployer createNewDeployerForType(String type); static ISOAPEncoder createNewEncoderForType(String styleEncoding); static IHeaderProcessor createNewHeaderProcessorForType(String type); static IDataSource createNewDataSourceForType(String type); static void loadDeploymentConfiguration(URL fileURL); static void configure(String deployerID, IBPELDeployer deployer); static Map<String, String> getGlobalConfigurationForDeployer(
			IBPELDeployer deployer); static void configureDeployer(IBPELDeployer deployer,
			Map<String, String> options); static Collection<String> getPossibleConfigurationOptions(
			Class<? extends IBPELDeployer> deployerClass, boolean forSuite); static Map<String, IBPELDeployerOption> getConfigurationAnnotations(
			Class<? extends IBPELDeployer> deployerClass, boolean forSuite); static String getDefaultValueFor(
			Class<? extends IBPELDeployer> deployer,
			String configurationParameter); static Map<String, ConfigurationOption> getConfigurationAnnotations(
			Class<? extends IDataSource> dsClass);  }
@Test public void testIsStringSetter() throws Exception { Method method = TestBean.class.getMethod("setSomething"); assertFalse(ExtensionRegistry.isStringSetter(method)); method = TestBean.class.getMethod("something", String.class); assertFalse(ExtensionRegistry.isStringSetter(method)); method = TestBean.class.getMethod("setNotStringSomething", String.class); assertFalse(ExtensionRegistry.isStringSetter(method)); method = TestBean.class.getMethod("setStringSometing", String.class); assertTrue(ExtensionRegistry.isStringSetter(method)); }