    @Test
    public void testConvert() {

        Instant now = Instant.now();
        Date nowDate = Date.from(now);

        //init
        subscriptionEntity = new SubscriptionEntity();
       
        subscriptionEntity.setApi(SUBSCRIPTION_API);
        subscriptionEntity.setApplication(SUBSCRIPTION_APPLICATION);
        subscriptionEntity.setClientId(SUBSCRIPTION_CLIENT_ID);
        subscriptionEntity.setClosedAt(nowDate);
        subscriptionEntity.setCreatedAt(nowDate);
        subscriptionEntity.setEndingAt(nowDate);
        subscriptionEntity.setId(SUBSCRIPTION_ID);
        subscriptionEntity.setPausedAt(nowDate);
        subscriptionEntity.setPlan(SUBSCRIPTION_PLAN);
        subscriptionEntity.setProcessedAt(nowDate);
        subscriptionEntity.setProcessedBy(SUBSCRIPTION_PROCESSED_BY);
        subscriptionEntity.setReason(SUBSCRIPTION_REASON);
        subscriptionEntity.setRequest(SUBSCRIPTION_REQUEST);
        subscriptionEntity.setStartingAt(nowDate);
        subscriptionEntity.setStatus(SubscriptionStatus.ACCEPTED);
        subscriptionEntity.setSubscribedBy(SUBSCRIPTION_SUBSCRIBED_BY);
        subscriptionEntity.setUpdatedAt(nowDate);
        
        
        //Test
        Subscription subscription = subscriptionMapper.convert(subscriptionEntity);
        assertNotNull(subscription);
        
        assertEquals(SUBSCRIPTION_API, subscription.getApi());
        assertEquals(SUBSCRIPTION_APPLICATION, subscription.getApplication());
        assertEquals(now.toEpochMilli(), subscription.getCreatedAt().toInstant().toEpochMilli());
        assertEquals(now.toEpochMilli(), subscription.getEndAt().toInstant().toEpochMilli());
        assertEquals(SUBSCRIPTION_ID, subscription.getId());
        assertEquals(SUBSCRIPTION_PLAN, subscription.getPlan());
        assertEquals(now.toEpochMilli(), subscription.getProcessedAt().toInstant().toEpochMilli());
        assertEquals(SUBSCRIPTION_REQUEST, subscription.getRequest());
        assertEquals(now.toEpochMilli(), subscription.getStartAt().toInstant().toEpochMilli());
        assertEquals(StatusEnum.ACCEPTED, subscription.getStatus());
        
    }