BitbucketWebhookEvent { @JsonbTypeAdapter(BitbucketRepositoryAdapter.class) public final BitbucketRepository getRepository() { return repository; } BitbucketWebhookEvent();  BitbucketWebhookEvent(final BitbucketWebhookEvent other); @JsonbTypeAdapter(BitbucketRepositoryAdapter.class) final BitbucketRepository getRepository(); final void setRepository(BitbucketRepository repository); @JsonbTypeAdapter(BitbucketUserAccountAdapter.class) final BitbucketUserAccount getActor(); final void setActor(BitbucketUserAccount actor); final BitbucketWebhookPush getPush(); final void setPush(final BitbucketWebhookPush push);  }
@Test void testRepository1() { String string1 = "{}"; BitbucketWebhookEvent event1 = jsonb.fromJson(string1, BitbucketWebhookEvent.class); assertNull(event1.getRepository()); }
@Test void testRepository2() { String string1 = "{\"repository\":{}}"; BitbucketWebhookEvent event1 = jsonb.fromJson(string1, BitbucketWebhookEvent.class); assertNotNull(event1.getRepository()); }