### Question:
TransactionScopedContextImpl implements Context { @Override public Class<? extends Annotation> getScope() { return TransactionScoped.class; } TransactionScopedContextImpl(); ConcurrentHashMap<TransactionSynchronizationRegistry, Set<TransactionScopedBean>> getBeansPerTransaction(); @Override Class<? extends Annotation> getScope(); @Override T get(Contextual<T> contextual, CreationalContext<T> creationalContext); @Override T get(Contextual<T> contextual); @Override /** * Determines if this context object is active. * * @return true if there is a current global transaction and its status is * {@Link javax.transaction.Status.STATUS_ACTIVE} * false otherwise */ boolean isActive(); static final String TRANSACTION_SYNCHRONIZATION_REGISTRY_JNDI_NAME; }### Answer:
@Test public void testgetScope() { TransactionScopedContextImpl transactionScopedContext = new TransactionScopedContextImpl(); assertEquals(transactionScopedContext.getScope(), TransactionScoped.class); }