### Question:
ReceivedConfigDataProcessor extends SyncUserProcessor<ReceivedConfigData> { @Override public Object handleRequest(BizContext bizCtx, ReceivedConfigData request) { Result result = new Result(); result.setSuccess(true); if (null == request) { return result; } List<String> registIds = request.getConfiguratorRegistIds(); try { ConfiguratorData configuratorData = new ConfiguratorData(); configuratorData.setDataBox(request.getDataBox()); configuratorData.setVersion(request.getVersion()); for (String registId : registIds) { Configurator configurator = registerCache.getConfiguratorByRegistId(registId); if (null == configurator) { continue; } if (configurator instanceof DefaultConfigurator) { ((DefaultConfigurator) configurator).putConfiguratorData(configuratorData); try { observerHandler.notify(configurator); } catch (Exception e) { LOGGER .error( "[received] add configurator notify task error, dataId: {}, registId: {}", configurator.getDataId(), configurator.getRegistId(), e); } } else { LOGGER.warn("[received] ignore unknown configurator type: {}", configurator .getClass().getName()); } } LOGGER .info( "[received] receive configurator data save success, dataId: {} version: {} data:{} registIds:{}", request.getDataId(), request.getVersion(), request.getDataBox(), registIds); } catch (Exception e) { result.setSuccess(false); result.setMessage(""); LOGGER.info( "[received] receive configurator data save failed, dataId: {} version: {} data:{}", request.getDataId(), request.getVersion(), request.getDataBox(), e); } return result; } ReceivedConfigDataProcessor(RegisterCache registerCache, ObserverHandler observerHandler); @Override Object handleRequest(BizContext bizCtx, ReceivedConfigData request); @Override String interest();  }### Answer:
@Test public void handleRequest() { Result result = (Result) processor.handleRequest(null, null); Assert.assertTrue(result.isSuccess()); Assert.assertNull(result.getMessage()); ReceivedConfigData request = new ReceivedConfigData(); request.setDataBox(new DataBox()); request.setVersion(1234L); request.setConfiguratorRegistIds(null); result = (Result) processor.handleRequest(null, request); Assert.assertFalse(result.isSuccess()); Assert.assertEquals("", result.getMessage()); request.setConfiguratorRegistIds(Arrays.asList("11", "22", "33")); result = (Result) processor.handleRequest(null, request); Assert.assertTrue(result.isSuccess()); Assert.assertNull(result.getMessage()); }