### Question:
Sprinkles { public <T> void registerType(Class<T> clazz, TypeSerializer<T> serializer) { typeSerializers.put(clazz, serializer); } private  Sprinkles(); static synchronized Sprinkles init(Context context); static synchronized Sprinkles init(Context context, String databaseName, int initialDatabaseVersion); @Deprecated static synchronized Sprinkles getInstance(Context context); static synchronized void dropInstances(); void addMigration(Migration migration); void registerType(Class<T> clazz, TypeSerializer<T> serializer);  }### Answer:
@Test public void registerType() { Sprinkles s = Sprinkles.init(Robolectric.application); TypeSerializer serializer = new MyObjectSerializer(); s.registerType(MyObject.class, serializer); assertEquals(s.getTypeSerializer(MyObject.class), serializer); }