### Question:
WNSAdapter implements ProviderAdapter { @Override public void testConnection() throws Exception { WnsToast toast = new WnsToastBuilder().bindingTemplateToastText01("test").build(); try{ service.pushToast("s-1-15-2-2411381248-444863693-3819932088-4077691928-1194867744-112853457-373132695", toast); }catch (ClientHandlerException e){ logger.info("Windows Phone notifier added: " + e.toString()); } } WNSAdapter(EntityManager entityManager, Notifier notifier); @Override void testConnection(); @Override void sendNotification(String providerId, Object payload, Notification notification, TaskTracker tracker); @Override void doneSendingNotifications(); @Override void removeInactiveDevices(); @Override Object translatePayload(Object payload); @Override void validateCreateNotifier(ServicePayload payload); @Override void stop(); @Override Notifier getNotifier();  }### Answer:
@Test public void windows() throws Exception { EntityManager em = setup.getEmf().getEntityManager(app.getId()); Notifier notifier = new Notifier(); notifier.setLogging(true); notifier.setSid("ms-app: notifier.setApiKey("QAHlxzMXhg5eP5q9bf/W3komtUXegf7B"); WNSAdapter adapter = new WNSAdapter(em, notifier); adapter.testConnection(); }