import junit.framework.TestCase;
import net.pterodactylus.sone.data.Sone;
+import net.pterodactylus.sone.data.SoneImpl;
import net.pterodactylus.sone.database.SoneProvider;
/**
*/
@Override
public Optional<Sone> getSone(final String soneId) {
- return Optional.<Sone> fromNullable(new Sone(soneId, false) {
+ return Optional.<Sone>of(new SoneImpl(soneId, false) {
/**
* {@inheritDoc}