### Question:
DBManager extends AbstractDbManager<T> { public final T get(final String name) throws DBManagerException { return retryTemplate.execute(new RetryCallback<T, DBManagerException>() { @Override public T doWithRetry(final RetryContext context) throws DBManagerException { return doGet(name); } }); } DBManager(final Class<T> clazz, final SessionFactory sessionFactory); final void setRetryTemplate(final int maxTransactionRetryAttempts,
                                               final long retryWaitTimeMilliseconds); void addRetryListener(final RetryListener retryListener); final List<T> getWithCriteria(final Collection<Criterion> criteriaCollection); @Override final int deleteAll(); final T save(final T object); final void update(final T object); final T get(final String name); final T get(final Serializable id); final T getAndLoadLazyFields(final String name, final boolean recurse); final T getAndLoadLazyFields(final Serializable id, final boolean recurse); List<T> getList(final Class<? extends T> clazz); @Override List<T> getList(final Class<? extends T> clazz, final Criterion additionalRestriction); @Override final FilteredRecordsList getOrderedList(
            final Class<? extends T> clazz, final String columnToOrder,
            final boolean ascending, final int firstResult,
            final int maxResults, final String search,
            final Map<String, Boolean> searchableColumns); @SuppressWarnings("checkstyle:parameternumber") final FilteredRecordsList<T> getOrderedList(
            final Class<? extends T> clazz, final String columnToOrder,
            final boolean ascending, final int firstResult,
            final int maxResults, final String search,
            final Map<String, Boolean> searchableColumns, final CriteriaModifier criteriaModifier); final boolean delete(final String name); final boolean delete(final Serializable id); @Override final boolean delete(final T object); @Override final boolean archive(final String name); static final int DEFAULT_MAX_RETRY_ATTEMPTS; }### Answer:
@Test(expectedExceptions = LazyInitializationException.class) @SuppressFBWarnings( value = "RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT", justification = "The statement is meant to throw an exception" ) public final void testGet() { LazyTestItemChild child = new LazyTestItemChild("Test Child"); DBManager<LazyTestItemChild> childMan = new DBManager<>(LazyTestItemChild.class, sessionFactory); LazyTestItemChild savedChild = childMan.save(child); LazyTestItemChild retrievedChild = childMan.get(savedChild.getId()); retrievedChild.getItems().size(); Assert.fail("LazyLoadingException was not thrown"); }