### Question:
BigTableEntityDao extends AbstractDao<T> implements Dao<T> { @Override @Deprecated public <K extends Key<T>> T save(final K key, final T entity) throws IOException { Objects.requireNonNull(key); Objects.requireNonNull(entity); final Map<K, T> results = saveAll(Collections.singletonMap(key, entity)); return results.get(key); } BigTableEntityDao(final Table table,
                      final Iterable<? extends Column> columns,
                      final Supplier<T> entityFactory,
                      final Function<T, EntityConfiguration.EntityDelegate<T>> delegateFactory,
                      final ObjectMapper objectMapper);   BigTableEntityDao(final Table table,
                      final Iterable<? extends Column> columns,
                      final Supplier<T> entityFactory,
                      final Function<T, EntityConfiguration.EntityDelegate<T>> delegateFunction); @Override @Deprecated Optional<T> get(final K key); @Override Map<K, T> getAll(final Set<K> keys); @Override SortedMap<Key<T>, T> scan(final K startKey,
                                                         final boolean startKeyInclusive,
                                                         final K endKey,
                                                         final boolean endKeyInclusive,
                                                         final int numRows); @Override SortedMap<Key<T>, T> scan(final K startKey,
                                                        final boolean startKeyInclusive,
                                                        final K endKey,
                                                        final boolean endKeyInclusive,
                                                        final int numRows,
                                                        @Nullable final String constant); @Override @Deprecated T save(final K key, final T entity); @Override Map<K, T> saveAll(final Map<K, T> entities); @Override @Deprecated void delete(final K key); @Override void deleteAll(final Set<K> keys);  }### Answer:
@Test(expected = NullPointerException.class) public void testSaveWithNullKeyThrowsNullPointerException() throws IOException { final TestEntity testEntity = new TestEntity(); testEntity.setStringValue("test"); testEntityDao.save(null, testEntity); }
@Test(expected = NullPointerException.class) public void testSaveWithNullEntityThrowsNullPointerException() throws IOException { final Key<TestEntity> key = new StringKey<>("key"); testEntityDao.save(key, null); }