### Question:
BundleModel { public long getId() { return bundle.getBundleId(); } BundleModel(Bundle bundle); static List<BundleModel> bundles(BundleContext context); String getState(); long getId(); String getName(); Map<String, String> getHeaders();  }### Answer:
@Test public void id() throws Exception { Bundle bundle = mock(Bundle.class); BundleModel model = new BundleModel(bundle); when(bundle.getBundleId()).thenReturn(1l); assertThat(model.getId()).isEqualTo(1l); }