public void testLoadDetailsFromTask() {
final String task = "e9db21: testDb -> http://10.11.12.13:5984/testDb/";
final String status = "MR Processed source update #594";
final String pid = "<0.201.0>";
ReplicationTask repTask = new ReplicationTask(task, status, pid);
assertTrue(repTask.loadDetailsFromTask());
assertEquals(status, repTask.getStatus());
assertEquals(pid, repTask.getPid());
assertNotNull(repTask.getSource());
assertFalse(repTask.getSource().isRemote());
assertEquals("testDb", repTask.getSource().getReplicatedEntity());
assertNotNull(repTask.getDestination());
assertTrue(repTask.getDestination().isRemote());
assertEquals("10.11.12.13", repTask.getDestination().getServer());
assertEquals("5984", Integer.toString(repTask.getDestination().getPort()));
assertEquals("testDb", repTask.getDestination().getReplicatedEntity());
}