* Testcase for {@link JobHandlingUtils}
*/
public class JobHandlingUtilsTest {
@Test
public void testFullPropertiesFromPackageCreation() throws Exception {
ReplicationQueueItem replicationQueueItem = mock(ReplicationQueueItem.class);
when(replicationQueueItem.getAction()).thenReturn("ADD");
when(replicationQueueItem.getId()).thenReturn("an-id");
when(replicationQueueItem.getPaths()).thenReturn(new String[]{"/content", "/apps"});
when(replicationQueueItem.getType()).thenReturn("vlt");
Map<String, Object> fullPropertiesFromPackage = JobHandlingUtils.createFullProperties(replicationQueueItem);
assertNotNull(fullPropertiesFromPackage);
assertEquals(4, fullPropertiesFromPackage.size());
assertNotNull(fullPropertiesFromPackage.get("replication.package.paths"));
assertNotNull(fullPropertiesFromPackage.get("replication.package.id"));