ConsentState { @NonNull public static Builder builder() { return new Builder(); } private  ConsentState(); private  ConsentState(Builder builder); @NonNull static Builder builder(); @NonNull static Builder withConsentState(@NonNull ConsentState consentState); @NonNull static Builder withConsentState(@NonNull String consentState); @NonNull Map<String, GDPRConsent> getGDPRConsentState(); @Nullable CCPAConsent getCCPAConsentState(); @Override @NonNull String toString();  }
@Test public void testTimestampAutomaticallySet() throws Exception { long currentTime = System.currentTimeMillis(); assertTrue(currentTime <= GDPRConsent.builder(false).build().getTimestamp()); assertTrue(currentTime <= CCPAConsent.builder(false).build().getTimestamp()); }