    @Test
    public void shouldIncrementCounter() {


        IAtomicLong mockAtomicLong = mock(IAtomicLong.class);
        when(mockAtomicLong.incrementAndGet()).thenReturn(1L);

        HazelcastInstance mockHazelcast = mock(HazelcastInstance.class);
        when(mockHazelcast.getAtomicLong(anyString())).thenReturn(mockAtomicLong);

        HazelcastJobHandleFactory hazelcastJobHandleFactory = new HazelcastJobHandleFactory(mockHazelcast, "localhost");

        assertThat("Generates a proper job handle",
                new String(hazelcastJobHandleFactory.getNextJobHandle()),
                is("H:localhost:1"));
    }