@@ -0,0 +1,1254 @@
+package com.bugsnag.android;%0A%0Apublic class ExceptionHandlerTest extends BugsnagTestCase %7B%0A    public void testEnableDisable() %7B%0A        // Start in a clean state, since we've created clients before in tests%0A        Thread.setDefaultUncaughtExceptionHandler(null);%0A%0A        Client client = new Client(getContext(), %22api-key%22);%0A        assertTrue(Thread.getDefaultUncaughtExceptionHandler() instanceof ExceptionHandler);%0A%0A        client.disableExceptionHandler();%0A        assertFalse(Thread.getDefaultUncaughtExceptionHandler() instanceof ExceptionHandler);%0A    %7D%0A%0A    public void testMultipleClients() %7B%0A        // Start in a clean state, since we've created clients before in tests%0A        Thread.setDefaultUncaughtExceptionHandler(null);%0A%0A        Client clientOne = new Client(getContext(), %22client-one%22);%0A        Client clientTwo = new Client(getContext(), %22client-two%22);%0A        Client clientThree = new Client(getContext(), %22client-two%22);%0A        clientThree.disableExceptionHandler();%0A%0A        assertTrue(Thread.getDefaultUncaughtExceptionHandler() instanceof ExceptionHandler);%0A        ExceptionHandler bugsnagHandler = (ExceptionHandler)Thread.getDefaultUncaughtExceptionHandler();%0A%0A        assertEquals(2, bugsnagHandler.clients.size());%0A    %7D%0A%7D%0A

Add ExceptionHandler tests