### Question:
LocalEntryDeployer extends AbstractSynapseArtifactDeployer { @Override public String deploySynapseArtifact(OMElement artifactConfig, String fileName, Properties properties) { if (log.isDebugEnabled()) { log.debug("LocalEntry Deployment from file : " + fileName + " : Started"); } try { Entry e = EntryFactory.createEntry(artifactConfig, properties); if (e != null) { e.setArtifactContainerName(customLogContent); e.setFileName((new File(fileName)).getName()); if (log.isDebugEnabled()) { log.debug("LocalEntry with key '" + e.getKey() + "' has been built from the file " + fileName); } getSynapseConfiguration().addEntry(e.getKey(), e); if (log.isDebugEnabled()) { log.debug("LocalEntry Deployment from file : " + fileName + " : Completed"); } log.info("LocalEntry named '" + e.getKey() + "' has been deployed from file : " + fileName); return e.getKey(); } else { handleSynapseArtifactDeploymentError("LocalEntry Deployment Failed. The artifact " + "described in the file " + fileName + " is not a LocalEntry"); } } catch (Exception e) { handleSynapseArtifactDeploymentError( "LocalEntry Deployment from the file : " + fileName + " : Failed.", e); } return null; }  @Override String deploySynapseArtifact(OMElement artifactConfig, String fileName,
                                        Properties properties); @Override String updateSynapseArtifact(OMElement artifactConfig, String fileName,
                                        String existingArtifactName, Properties properties); @Override void undeploySynapseArtifact(String artifactName); @Override void restoreSynapseArtifact(String artifactName);  }### Answer:
@Test public void testDeploy() throws Exception { String inputXML = "<localEntry key=\"TestEntry\" xmlns=\"http: OMElement inputElement = AXIOMUtil.stringToOM(inputXML); LocalEntryDeployer localEntryDeployer = new LocalEntryDeployer(); SynapseConfiguration synapseConfiguration = new SynapseConfiguration(); AxisConfiguration axisConfiguration = synapseConfiguration.getAxisConfiguration(); ConfigurationContext cfgCtx = new ConfigurationContext(axisConfiguration); SynapseEnvironment synapseEnvironment = new Axis2SynapseEnvironment(cfgCtx, synapseConfiguration); axisConfiguration.addParameter(new Parameter(SynapseConstants.SYNAPSE_ENV, synapseEnvironment)); axisConfiguration.addParameter(new Parameter(SynapseConstants.SYNAPSE_CONFIG, synapseConfiguration)); cfgCtx.setAxisConfiguration(axisConfiguration); localEntryDeployer.init(cfgCtx); String response = localEntryDeployer.deploySynapseArtifact(inputElement, "sampleFile", null); Assert.assertEquals("Local Entry not deployed!", "TestEntry", response); }