### Question:
BrandPortalSyncProcess implements WorkflowProcess { protected final ReplicationActionType getReplicationActionType(MetaDataMap metaDataMap) { final String processArgs = StringUtils.trim(metaDataMap.get("PROCESS_ARGS", ReplicationActionType.ACTIVATE.getName())); if (StringUtils.equalsIgnoreCase(processArgs, ReplicationActionType.ACTIVATE.getName())) { return ReplicationActionType.ACTIVATE; } else if (StringUtils.equalsIgnoreCase(processArgs, ReplicationActionType.DEACTIVATE.getName())) { return ReplicationActionType.DEACTIVATE; } return null; }  final void execute(WorkItem workItem, WorkflowSession workflowSession, MetaDataMap metaDataMap);  }### Answer:
@Test public void getReplicationActionType_activate() throws Exception { metadataMap.put("PROCESS_ARGS", "activate"); assertEquals(ReplicationActionType.ACTIVATE, workflowProcess.getReplicationActionType(metadataMap)); }
@Test public void getReplicationActionType_activate_caps() throws Exception { metadataMap.put("PROCESS_ARGS", "ACTIVATE"); assertEquals(ReplicationActionType.ACTIVATE, workflowProcess.getReplicationActionType(metadataMap)); }
@Test public void getReplicationActionType_deactivate() throws Exception { metadataMap.put("PROCESS_ARGS", "DEACTIVATE"); assertEquals(ReplicationActionType.DEACTIVATE, workflowProcess.getReplicationActionType(metadataMap)); }
@Test public void getReplicationActionType_deactivate_caps() throws Exception { metadataMap.put("PROCESS_ARGS", "DEACTIVATE"); assertEquals(ReplicationActionType.DEACTIVATE, workflowProcess.getReplicationActionType(metadataMap)); }
@Test public void getReplicationActionType_null() throws Exception { metadataMap.put("PROCESS_ARGS", "null"); assertNull(workflowProcess.getReplicationActionType(metadataMap)); }