<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hsyd</author_name>
  <author_url>https://blog.hatena.ne.jp/hsyd/</author_url>
  <blog_title>revamping</blog_title>
  <blog_url>https://hsyd.hatenadiary.org/</blog_url>
  <categories>
    <anon>java</anon>
  </categories>
  <description>文字列のハッシュ衝突時のテストケースを書くことになりましたが、いつも使っているMockitoはfinal classのmockを作ることができません。調べてみたところ、PowerMockというモジュールを使うことによって、MockitoのAPIを用いてfinal classのmockを作ることができることが分かり、試してみました。 import static org.hamcrest.CoreMatchers.is; import static org.hamcrest.CoreMatchers.not; import static org.junit.Assert.assertThat; i…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhsyd.hatenadiary.org%2Fentry%2F20120122%2F1327253581&quot; title=&quot;Mockito+PowerMockでStringのmockを作る - revamping&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2012-01-22 02:33:01</published>
  <title>Mockito+PowerMockでStringのmockを作る</title>
  <type>rich</type>
  <url>https://hsyd.hatenadiary.org/entry/20120122/1327253581</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
