    @Test
    public void testBrokerCreateException() {

        when(mockDefaultServiceImpl.createBinding(any(ServiceInstance.class), any(ServiceBinding.class))).thenThrow(new RuntimeException("aaaagh!"));
        exception.expect(ServiceBrokerException.class);

        assertNotNull(bindingService.createServiceInstanceBinding(TestConfig.createBindingRequest(ID, ID)));
        ServiceBinding sb = serviceBindingRepository.findOne(ID);
        assertNotNull(sb);
        assertEquals(LastOperation.FAILED, sb.getLastOperation().getState());
        assertTrue(sb.isDeleted());
    }