### Question:
MultiXMLConfigurationSerializer { public boolean isWritable() { return isWritable(rootDirectory); } MultiXMLConfigurationSerializer(String directoryPath); void serialize(SynapseConfiguration synapseConfig); boolean isWritable(); void serializeSynapseXML(SynapseConfiguration synapseConfig); OMElement serializeSynapseRegistry(Registry registry, SynapseConfiguration synapseConfig,
                                         OMElement parent); OMElement serializeTaskManager(TaskManager taskManager, SynapseConfiguration synapseConfig,
                                              OMElement parent); OMElement serializeProxy(ProxyService service, SynapseConfiguration synapseConfig,
                                    OMElement parent); OMElement serializeEventSource(SynapseEventSource source,
                                          SynapseConfiguration synapseConfig,
                                          OMElement parent); OMElement serializeTask(Startup task, SynapseConfiguration synapseConfig,
                                   OMElement parent); OMElement serializeSequence(SequenceMediator seq, SynapseConfiguration synapseConfig,
                                       OMElement parent); OMElement serializeTemplate(TemplateMediator template, SynapseConfiguration synapseConfig,
                                       OMElement parent); OMElement serializeTemplate(Template template, SynapseConfiguration synapseConfig,
                                       OMElement parent); OMElement serializeEndpoint(Endpoint epr, SynapseConfiguration synapseConfig,
                                       OMElement parent); OMElement serializeLocalEntry(Object o, SynapseConfiguration synapseConfig,
                                         OMElement parent); OMElement serializeExecutor(PriorityExecutor source, SynapseConfiguration synapseConfig,
                                       OMElement parent); OMElement serializeMessageStore(MessageStore messagestore,SynapseConfiguration synConfig,
                                           OMElement parent); OMElement serializeMessageProcessor(MessageProcessor messageProcessor,
                                                SynapseConfiguration synapseConfiguration ,
                                           OMElement parent); OMElement serializeAPI(API api, SynapseConfiguration synapseConfig,
                                  OMElement parent); OMElement serializeInboundEndpoint(InboundEndpoint inboundEndpoint, SynapseConfiguration synapseConfig,
                                  OMElement parent); OMElement serializeImport(SynapseImport synapseImport, SynapseConfiguration synapseConfig,
                                  OMElement parent); OMElement serializeComments(String comment, OMElement parent);  }### Answer:
@Test public void testIsWritable() throws Exception { MultiXMLConfigurationSerializer serializer = new MultiXMLConfigurationSerializer(TEST_DIRECTORY_NAME); File file = new File(TEST_DIRECTORY_NAME); if (!file.exists()) { file.mkdir(); file.setWritable(true); } Assert.assertTrue(TEST_DIRECTORY_NAME + " is writable.", serializer.isWritable()); removeTestFolder(TEST_DIRECTORY_NAME); }